db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <bri...@chariotsolutions.com>
Subject Re: JDO with CMT.
Date Fri, 04 Feb 2005 22:31:28 GMT
On Feb 4, 2005, at 5:29 PM, Armin Waibel wrote:

> 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.

JPOX is pretty good.

-Brian

>
> 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("xyz@abc.org");
>>  //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: ojb-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message