Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Declaring Isolation level  RSS feed

 
Deena
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Can any of you let me know where the Isolation levels specified during an EJB development and deployment?

regards
Narayanan
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server Specific deployment descriptor

Shriniwas
 
Deena
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you let me know the exact details.. Is it in ejb-jar.xml? If you can let me the exact tag descriptors, it will be really of great help?
 
Murali Pen
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You specify transaction isolation levels in ejb-jar.xml. The list of transaction isolation levels are:

Mandatory
Required
RequiresNew
Never
NotSupported
Supports

You specify them at the method level under the <assembly-descriptor> section of the ejb-jar.xml.

Ex:

<assembly-descriptor>
....
....
<container-transaction>
<method>
<ejb-name>NextIdBean</ejb-name>
<method-intf>Local</method-intf>
<method-name>setId</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
...
...
</assembly-descriptor>
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"DSquare" see your other thread regarding following the JavaRanch Naming Policy.

Thanks

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!