This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes container-transaction Tag - Who is Responsible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "container-transaction Tag - Who is Responsible?" Watch "container-transaction Tag - Who is Responsible?" New topic
Author

container-transaction Tag - Who is Responsible?

vijay Mamilla
Ranch Hand

Joined: Dec 29, 2004
Posts: 94
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>StockQuotes</ejb-name>
<method-name>buy</method-name>
</method>
<trans-attribute>RequiresNew</trans-attribute>
</container-transaction>
</assembly-descriptor>

Who is responsible for providing container-transaction and assembly-descriptor - tag?

Thanks,
Vijay
Vijay Dasari
Greenhorn

Joined: May 27, 2005
Posts: 9
Application Assembler is responsible for setting the transactional attributes for beans.
vijay Mamilla
Ranch Hand

Joined: Dec 29, 2004
Posts: 94
Thanks for reply, my question is
who is responsible for container-transaction tag?

Thanks,
Vijay
Vijay Dasari
Greenhorn

Joined: May 27, 2005
Posts: 9
Text from Spec:

Bean Provider:
=================
"The Bean Provider of an enterprise bean with container-managed transaction demarcation may optionally
specify the transaction attributes for the enterprise bean�s methods. See Subsection 17.4.1."

Application Assembler:
========================
"
Providing the transaction attributes for an enterprise bean is an optional requirement for the Application
Assembler, because, for a given enterprise bean, the Application Assembler must either specify a value
of the transaction attribute for all the methods for which a transaction attribute must be specified, or the
Assembler must specify none. If the transaction attributes are not specified for the methods of an enterprise
bean, the Deployer will have to specify them.
"

Deployer:
====================
"The Deployer is responsible for ensuring that the methods of the deployed enterprise beans with container-
managed transaction demarcation have been assigned a transaction attribute. If the transaction
attributes have not been assigned previously by the Assembler, they must be assigned by the Deployer."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: container-transaction Tag - Who is Responsible?
 
Similar Threads
Restrictions on Transactions
Declaring Isolation level
Handling of Transactions in EJB 2.1 version
setAutoCommit - URGENT.....
Weblogic 8.1 and ejb 1.0