Hello Friends,
 I am using An Session Bean to talk to Entity Bean.  Now the Session Bean is
using making use of
javax.transaction.UserTransaction
So u can see its bean managed transaction. Can anyone help me out in writing
ejb-jar.xml file for this bean. I am having problems in writing either
container-transaction or bean transaction and then whats the attribute to
specigy its TX_Bean -Managed.
The below file is what i have written but it does not work at all:


<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

<ejb-jar>
    <enterprise-beans>
      <session>
        <ejb-name>OrderSessionEntity</ejb-name>
 <home>pms.session.bask_ord.OrderSessionHome</home>
 <remote>pms.session.bask_ord.OrderSessionRemote</remote>
 <ejb-class>pms.session.bask_ord.OrderSessionBean</ejb-class>
 <session-type>Stateless</session-type>
 <transaction-type>Bean</transaction-type>
       </session>
    </enterprise-beans>
    <assembly-descriptor>
      <container-transaction>
 <method>
   <ejb-name>OrderSessionEntity</ejb-name>
   <method-intf>Remote</method-intf>
   <method-name>add_fill</method-name>
 </method>
 <trans-attribute>Never</trans-attribute>
      </container-transaction>
      <container-transaction>
 <method>
   <ejb-name>OrderSessionEntity</ejb-name>
   <method-intf>Remote</method-intf>
   <method-name>update_fill</method-name>
 </method>
 <trans-attribute>Never</trans-attribute>
      </container-transaction>
    </assembly-descriptor>
  </ejb-jar>




 Regards,
Prateek.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to