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);

     

 

I’m sure it is something easy I missed in the docs – any help is greatly appreciated!

 

Thanks,

 

Jay T. Hotaling

 

 

Reply via email to