Jay,
as far as I know, Websphere has never exposed javax.jta.TransactionManager in the same way as other application servers (by binding it to the JNDI ENC under 'java:comp/UserTransaction'. I think a couple of weeks ago there was a thread that explained what to do if you want to use global transactions with Websphere 5 and Castor. Basically, you'll have to patch JDO.java#getDatabase() so that an internal class to Websphere will be called instead of the JNDI lookup.
I hope this helps ...
Werner
--Original Message Text---
From: Jay Hotaling
Date: Fri, 10 Oct 2003 13:21:53 -0400
Hello All,
After reading the documentation and looking thru the mailing archives, I still am experiencing issues with my setup. The latest issue is the following exception: [CASTOR-ADO] java.lang.ClassCastException: com.ibm.ejs.container.UserTransactionWrapper
Here is the code I am executing from a stateless session bean (deployment descriptor set to transaction-type = bean):
uTran = serviceLocator.getUserTransaction(utName);
uTran.begin();
db = jdo.getDatabase();
db.create(user);
uTran.commit();
db.close();
Here is my JDO setup (done before the above code is executed):
// Set up the Castor JDO object
jdo = new JDO();
jdo.setLogWriter(castorLogger);
// utName is "java:comp/UserTransaction"
jdo.setTransactionManager(utName);
jdo.setConfiguration(databaseConfiguration);
jdo.setDatabaseName(databaseName);
Im sure it is something easy I missed in the docs any help is greatly appreciated!
Thanks,
Jay T. Hotaling
Re: [castor-dev] Websphere 5 - Problem getting Castor working: "basic" jndi/user transaction issues.
- [castor-dev] Websphere 5 - Problem getting Castor working:... Jay Hotaling
- Re: [castor-dev] Websphere 5 - Problem getting Castor... Werner Guttmann
- Re: [castor-dev] Websphere 5 - Problem getting Ca... Jay Hotaling
