File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Two-Phase commit using CMT on JBoss and Oracle XE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Two-Phase commit using CMT on JBoss and Oracle XE" Watch "Two-Phase commit using CMT on JBoss and Oracle XE" New topic
Author

Two-Phase commit using CMT on JBoss and Oracle XE

Oliver Chua
Greenhorn

Joined: Feb 27, 2004
Posts: 29
Hi all,

I'm trying out two-phase commit using container managed transaction in Jboss and OracleXE.

It throws an exception when conn2 is retrieved.


Below are the files:

Stateless Bean


Bean interface


Test Class


persistence.xml


Datasource


Stack trace
Oliver Chua
Greenhorn

Joined: Feb 27, 2004
Posts: 29
By the way, confirmed that Oracle XE 10g does support XA.

http://farkasgabor.blogspot.com/2010/10/sun-glassfish-and-oracle-xe-distributed.html
 
jQuery in Action, 2nd edition
 
subject: Two-Phase commit using CMT on JBoss and Oracle XE
 
Similar Threads
GenericJDBCException: Cannot open connection
Problem in getting connection from data source
org.hibernate.exception.GenericJDBCException: Cannot open connection
EJB3 entity bean
javax.naming.NotContextException