|
Perhaps you've encountered the ancient "deadly embrace". Most databases, (even including the primitive ones from the S/34 and S/36), locked a record that was read for update until either: a) The record was "updated" b) Another record was read by the same application. One way around that is to make sure that your SQL doesn't read for update. Clauses like "for fetch only" may help you. Keep us posted. (Just got back from a week at IBM in Minnesota.) Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin Robert Laing <rlaing@xxxxxxxxx> Sent by: domino400-bounces@xxxxxxxxxxxx 09/10/2003 09:04 PM Please respond to Lotus Domino on the iSeries / AS400 To: Lotus Domino on the iSeries / AS400 <domino400@xxxxxxxxxxxx> cc: Fax to: Subject: web based app using jdbc questions Hi, 6.0.2CF1 on v5r2 I've created a web based Domino app that relies on webqueryopen Java agents to fill fields on forms from DB2 on our iSeries box. The application allows some basic order status inquiry into a couple pf's & lf's. I'm using the AS/400 Toolbox for Java JDBC driver and everything was working great, response time was great until... Two different users inquired on the same order at the same time and things slowed to a crawl. It's almost seemed as if one of the user sessions was waiting for the other to finish the agent before the other would start. Inquiring on different orders concurrently doesn't have the same effect. I have not added any code in the agents for multi-threading -- never done that before actually, don't even know if I need it. Should I be looking at making the agents multi-threading, or should I be looking at the connections, or something else ??? Thanks in advance, Bob _______________________________________________ This is the Lotus Domino on the iSeries / AS400 (Domino400) mailing list To post a message email: Domino400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/domino400 or email: Domino400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/domino400.
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.