× 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.



Create a class that implements ConnectionPoolListener.  The method you're
going to flesh out is connectionCreated.  Then, instantiate a
ConnectionPoolListener object.  Pass that object into the
addConnectionPoolListener method of your AS400ConnectionPool object.  Your
ConnectionPoolListener's connectionCreated method will get called whenever a
new connection is created and placed into the connection pool.

When your connectionCreated method is called, it is passed a
ConnectionPoolEvent.  If you call the getSource() method of the passed
ConnectionPoolEvent and cast the returned value to an AS400, you should be
all set to go.

HTH,
Gary

> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx 
> [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Price, Chris
> Sent: Friday, May 09, 2003 6:22 AM
> To: 'Java Programming on and around the iSeries / AS400'
> Subject: RE: AS400 objects from a connection pool
> 
> 
> Dave,
> 
> I really need a WebApp side solution. We deploy our 
> application to our customers iSeries', so mucking about with 
> exit programs is not the ideal option.
> 
> Chris.
> 
> -----Original Message-----
> From: David Morris [mailto:David.Morris@xxxxxxxxxxxxx]
> Sent: 09 May 2003 14:02
> To: java400-l@xxxxxxxxxxxx
> Subject: Re: AS400 objects from a connection pool
> 
> 
> Chris,
> 
> You can create an exit program to set this up for you. The exit to use
> (wrkreginf) will vary depending on which driver you use 
> (native or toolbox). The initialization exit is only called 
> when the connection is established. We use these to set 
> library lists based on the caller's environment so that 
> programmers will generally get test and users will generally 
> get production.
> 
> David Morris



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.