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.
-
Transaction Isolation Level In Jboss (2 messages)
- Posted by: Ashish Doshi
- Posted on: January 20 2004 22:35 EST
Threaded Messages (2)
- Transaction Isolation Level In Jboss by sergiu truta on January 21 2004 09:44 EST
- Transaction Isolation Level In Jboss by Hari Lakshmanan on January 21 2004 18:50 EST
-
Transaction Isolation Level In Jboss[ Go to top ]
- Posted by: sergiu truta
- Posted on: January 21 2004 09:44 EST
- in response to Ashish Doshi
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. -
Transaction Isolation Level In Jboss[ Go to top ]
- Posted by: Hari Lakshmanan
- Posted on: January 21 2004 18:50 EST
- in response to Ashish Doshi
I believe you need to set the transaction isolation level in the datasource configuration file. I have not used it though.