Statement.close() with unprocessed results  Using ResultSet.getCursorName( )

Chapter 2: Programming Information

Making adjustments for multithreading

If several threads simultaneously call methods on the same Statement instance, CallableStatement, or PreparedStatement—which we do not recommend— you have to manually synchronize the calls to the methods on the Statement; jConnect does not do this automatically.

For example, if you have two threads operating on the same Statement instance—one thread sending a query and the other thread processing warnings—you have to synchronize the calls to the methods on the Statement or conflicts may occur.





Copyright © 2003. Sybase Inc. All rights reserved. Using ResultSet.getCursorName( )

View this book as PDF