My database.xml is like the following, and the datasource which i defined in the example server of weblogic is working fine!
<database name="petstore" engine="oracle">
    <jndi name="datasource-petstorePool"/>
    <mapping href="user.xml"/>
</database>
Is there other thing i need to declare in the database.xml file???
 
In the ejb-jar.xml file, i have the following transaction description for the session bean and
when i use entity bean instead of JDO, the session bean works fine.
<container-transaction>
      <method>
        <ejb-name>SignOnEJB</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>createUser</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>SignOnEJB</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>authenticate</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
          <method-param>java.lang.String</method-param>
        </method-params>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
-----Original Message-----
From: Andrew [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 27, 2002 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] how can i inform Castor JDO engine that i will use EJB Container's Transaction Management?

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