Transaction Isolation Level In Jboss

Discussions

EJB programming & troubleshooting: Transaction Isolation Level In Jboss

  1. Transaction Isolation Level In Jboss (2 messages)

    Hello All:

    How to set transaction isolation level in Jboss. I want to set a method of entity bean to SERIALIZABLE but not getting the syntax and place in deployment descriptor.

    Help would be appreciated.

    Best Regards,
    Ashish.
  2. Transaction Isolation Level In Jboss[ Go to top ]

    You should set the Transaction Attribute to "RequiresNew". Here is an example:

      <container-transaction>
        <method>
          <ejb-name>BeanName</ejb-name>
          <method-name>MethodName</method-name>
        </method>
        <trans-attribute>RequiresNew</trans-attribute>
      </container-transaction>

      Using "RequiresNew" each time you call this method it will run in a different transaction.
  3. I believe you need to set the transaction isolation level in the datasource configuration file. I have not used it though.