|
David, I think what Gary described will meet my needs. The main thing I wanted to do was set an initial library list when the connection is created. As you pointed out there are other ways to do this, but when you are not in control of the target environment it would be better if you could control it in your code. In my case, I also want to do a program call so that I can "prime" the PCML object and cause it to have parsed the XML file with my PCML definitions. On the iSeries this is all an issue because it is so slow on first touch. I think that by doing these items in a pool when the connections are first created could shave a second or two off the login process. Mark "David Morris" <David.Morris@xxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 05/09/2003 12:37 PM Please respond to Java Programming on and around the iSeries / AS400 To: <java400-l@xxxxxxxxxxxx> cc: Subject: RE: AS400 objects from a connection pool Mark, I can't see where you can control this entirely from the "Web side" because the connection is stateless. You can come pretty close with the native driver but there are no guarantees unless you set the usage to *nomax, which means you touch the AS/400 side anyway. Alternatives would be to build your own connection broker that stays active on the AS/400 but that is a lot of work. David Morris >>> MarkP@xxxxxxxxxxxxxxx 05/09/03 08:06AM >>> I agree, I need it on the web side too. Are there any generic pooling mechanisms available that could be used? In other words, you provide some code that the pool calls when it needs to add another object to the pool. Your code could then construct and initialize an AS400 connection and give it to the pool to give to the requester and later store. I imagine it wouldn't be too difficult to write your own pool, but it would be nice to use something else where all of the threading issues have been thought of and tested. Mark _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo.cgi/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
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.