File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Informix JDBC, setQueryTimeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Informix JDBC, setQueryTimeout" Watch "Informix JDBC, setQueryTimeout" New topic
Author

Informix JDBC, setQueryTimeout

Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
I am using the Informix Type 4 JDBC driver. The driver version is 3.00.JC2

When I call java.sql.Statement.setQueryTimeout, the Informix JDBC driver throws a java.sql.SQLException

Why does the driver throw a SQLException?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30502
    
150

Sean,
The exception usually contains more details. Try sqlException.printStackTrace() and System.out.println(sqlException.getMessage()) for more details.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Informix JDBC, setQueryTimeout