Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within BEA/Weblogic
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
BEA/Weblogic
Setting transaction attributes
PNS Subramanian
Ranch Hand
Posts: 150
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Where do we set the transaction attributes for methods used in our application ? Different methods are likely to have different transaction attributes set - isnt this possible when the transaction type setting in ejb-jar.xml file is Bean Managed ?
Graham Thorpe
Ranch Hand
Posts: 265
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
U can set transaction attributes for methods using "WebLogicBuilder"
Sachin Dangi
Greenhorn
Posts: 17
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
you can specify different transaction attributes for different methods of same
ejb
in ejb-jar.xml. given below is one eg.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <enterprise-beans> <session> <display-name>TestEJB</display-name> <ejb-name>TestEJB</ejb-name> <local-home>com.test.ejb.TestEJBHome</local-home> <local>com.test.ejb.TestEJBHome</local> <ejb-class>com.test.ejb.TestEJB</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>TestEJB</ejb-name> <method-name>getOrder</method-name> </method> <trans-attribute>Supports</trans-attribute> </container-transaction> <container-transaction> <method> <ejb-name>TestEJB</ejb-name> <method-name>storeOrder</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar>
Every plan is a little cooler if you have a blimp. And a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
A question a day ... keeps .....:)
When to use transaction on method level?
responsibilities of the application assembler
Setting transaction attributes
sesionsynchronization methods
More...