This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes error on commit(related to 2 phase 1 phase) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "error on commit(related to 2 phase 1 phase)" Watch "error on commit(related to 2 phase 1 phase)" New topic
Author

error on commit(related to 2 phase 1 phase)

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2057
Hello, anyone have idea on this error

"An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred"

[I have a bean-managed transaction on a session bean.

This error results from the ut.commit() statement. It could be on my setup on wsad/resources/db2, but havent figured out yet.]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2057
solved it. had to use jta xa drivers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: error on commit(related to 2 phase 1 phase)