Dear All,
To improve performance of my EJB's, I wish to set trans-attribute as "Supports" for all my get methods and rest of the methods as "Required".
Heres the snippet from my ejb-jar.xml which I'm using to achieve the same:
======== start ejb-jar.xml =========
<container-transaction>
<method>
<ejb-name>com.test.beans.TestBean</ejb-name>
<method-name>get*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>com.test.beans.TestBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
======== end ejb-jar.xml ===========
My doubt is:
- Is this the right way to achieve the same?
- Is there any possibility that 1st container would set the trans-attribute for all methods start with get to "Supports" and then set the trans-attribute as "Required" for all method[since I've used * afterwards], i.e overwrite the changes for get* methods?
- Or Should I do it other way around? i.e 1st set trans-aatribute of all methods[*] and then overwrite for get* methods?
Comments plz !!!
Thanx
~Puneet Maini
-
<trans-attribute> in ejb-jar.xml (0 messages)
- Posted by: Puneet Maini
- Posted on: April 16 2002 02:32 EDT