GeeCON Prague 2014*
The moose likes Websphere and the fly likes JTA Problem in VAJ 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "JTA Problem in VAJ 4" Watch "JTA Problem in VAJ 4" New topic
Author

JTA Problem in VAJ 4

Adam Tao
Greenhorn

Joined: Jun 03, 2002
Posts: 24
Hi all,
In VAJ 4, I need to manage distributed transaction using JTA. I set up the datasource using JTA type( instead of JDBC type) and the databases DB2 on WIN and AIX have been configured to support JTS.
1. I use CMT Session Bean to manage the distributed transaction to update AIX and Win DB2 database, no problem.
2. I use JTA datasource to update AIX Db2 database in a java application(no distributed transaction), no problem.
But when I use JTA to manage the transaction to update Aix DB2 in a java application, Trying to get a connection.... Exception is : java.lang.NullPointerException. What is the problem? Please advice.
Thanks
Adam


Adam <br /> <br />Sun Certified Enterprise Architect for J2EE<br />IBM Certified for e-business - Solution Designer<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - XML and Related Technologies
Adam Tao
Greenhorn

Joined: Jun 03, 2002
Posts: 24
Hi,
It seems classpath problem, no problem when use BMT Session EJB, in standalone application, the problem happens, but even i add all the workbench projects to the classpath, it says same problem: NullPointerException.
Thanks
adam
[ July 02, 2002: Message edited by: Adam Ttj ]
[ July 02, 2002: Message edited by: Adam Ttj ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTA Problem in VAJ 4