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 Problems with DB2XADataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problems with DB2XADataSource " Watch "Problems with DB2XADataSource " New topic
Author

Problems with DB2XADataSource

Saro Visu
Greenhorn

Joined: Jul 13, 2004
Posts: 2
We have problems when using XADataSource with a PreparedStatement.
The DB table has one column type as BLOB. We use PreparedStatement and run executeUpdate() method after setting values for the PreparedStatement. We set the value for the BLOB column as BinaryInputStream. The method doesn't looks to complete and we do not receive any error also.
The same stuff works fine when using the DB2ConnectionPoolDataSource.
We use com.ibm.db2.jcc.DB2XADataSource.

Thanks
Saro
Saro Visu
Greenhorn

Joined: Jul 13, 2004
Posts: 2
Anyone out there having a solution for this ?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
162

Saro,
The method doesn't looks to complete and we do not receive any error also.

What do you mean by this? Does it hang? Does it not update the row? Does it throw an exception?


[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
Sara Visu
Greenhorn

Joined: Jul 15, 2004
Posts: 1
The method hangs and no exception thrown. The method ends when the transaction timeout value is reached. So obviously the method doesnt complete and so record is not inserted.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
162

Sara,
Could the transaction settings different on your datasource with the XA driver?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with DB2XADataSource