Hi Muthu,

currently you can't use the OJB-JDO prototype in managed enviroments, because JTA integration is not supported (so JDO can't participate in JTA-tx).
I recommend to use another open-source JDO implementation.


regards,
Armin


Ramaswamy, Muthu wrote:
Hi All-

Currently I am trying to use Apache/OJB with JDO support in Session Beans, using Container Manager Transaction(CMT) in Websphere 5.1.

When I executed the Session Bean, I get the following error:

"Exception data: javax.jdo.JDOUserException: Transaction is not active."

I have attached below the sample code:

 //Setting up the Bean
 AuthUserJDO usr = new AuthUserJDO();
 usr.setUsr_login("cocoon");
 usr.setUsr_fullname("Demo");
 usr.setUsr_password("moth");
 usr.setUsr_email("[EMAIL PROTECTED]");

//Get a PersistentManager PersistenceManagerFactory factory = new OjbStorePMF(); //factory.
PersistenceManager manager = factory.getPersistenceManager(); //get the manager.
manager.makePersistent(usr); //make persistent.
manager.close(); //close the manager.


I am new to Apache/OJB. Is there an example working program that shows how to 
use JDO with CMT inside Session Bean? Any code sample would help to resolve 
this issue.

Appreciate your time. Thanks.,

-Muthu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to