Help with transactions ...

Discussions

EJB programming & troubleshooting: Help with transactions ...

  1. Help with transactions ... (1 messages)


    I am starting a transaction context from my client code and then proceeding to calling a method on a session bean. The session bean proceeds to start it's own transaction that it commits upon exiting the method. How can I force the session bean to use the transaction that I have already started in the client code?

    My deployment descriptor has the following:

    <container-transaction>
    <description/>
    <method>
    <description/>
    <ejb-name>eTouchContactFactory</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>



    I have tried nearly all of the possible values for <trans-attribute> and I still can't get it to work. Is there a way of specifying no methods?

    Any suggestions?

    Yvon Lavoie
  2. Help with transactions ...[ Go to top ]

    Do you have an explicit start transaction and end transaction statement in your session bean? In that case the bean will start its own transaction.