1)You need to configure castor for container integration- through JNDI DataSource in database mapping config file(see site for reference).
2)Be sure that you set up properly container configuration(transaction management) in EJB descriptor.
 
Regards.
 
 
----- Original Message -----
Sent: Sunday, October 27, 2002 12:52 PM
Subject: [castor-dev] how can i inform Castor JDO engine that i will use EJB Container's Transaction Management?

I have a session bean and a jdo class.
 
The session bean's business methods use Weblogic Server's
EJB Container's Transaction Management--there are no 
"db.begin()" and "db.commit()" calls again,  and create and use
org.exolab.castor.jdo.Database object, too.
 
But it seems that JDO engine don't know that it
is using Container Management Transaction[CMT], because
it threw a exception with a message of "there is no transaction
in the executed thread".
 
So i want to know how i can inform Castor JDO engine
that i will use EJB Container's Transaction Management?
 
Thank you very much!  
 
yamssar
 


Upgrade Your Email - Click here!

Reply via email to