Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Sara,
Could the transaction settings different on your datasource with the XA driver?
 
Consider Paul's rocket mass heater.
 
subject: Problems with DB2XADataSource
 
Similar Threads
How to store & retrieve a video file from database?
Need help Urgently
dealing with images/pictures
storing BLOB
Upload attachment using Java