× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That's what we do, we wrap that call to the CL program in an object that
extends ConnectionListener, call addConnectionListener on the AS400 object.
And the CL is called every time an AS400 object connects to the remote
command server. That way we can open and close the connection as and when we
please, when the connection object reconnects the library list is changed
automatically.

Something along the lines of:

class as400ConnectionEvent implements ConnectionListener
{

public void connected(ConnectionEvent e)
{

If(e.getService() = AS400.Command)
{
AS400 a = (AS400) e.getSource();
//Create a command call object etc from here to
change the library list
}
}
public void disconnected(ConnectionEvent e)
{


}


}


}



-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of James Perkins
Sent: 22 December 2008 15:07
To: Java Programming on and around the iSeries / AS400
Subject: Re: JT400 Job Library List

I usually just write a CL to handle the library list then just call the CL.

--
James R. Perkins

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.