This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 29219
    
135

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: 29219
    
135

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
 
Similar Threads
Need help Urgently
storing BLOB
dealing with images/pictures
How to store & retrieve a video file from database?
Upload attachment using Java