wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Transaction Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Transaction Doubt" Watch "Transaction Doubt" New topic
Author

Transaction Doubt

Sajid Moinuddin
Ranch Hand

Joined: Mar 19, 2005
Posts: 85
Suppose I have a business method like this---

x()
{
//do some modification of this bean

//look up a home and call a home method which does some modifications of other beans

//do some other modification of this bean
}

Now if transaction attribute of x is marked Required, What will be the transaction attribute of the home method called. How can I define the transaction attribute of home methods?? and What will be the transaction attribute of ejbSelect && ejbFind methods? How do I define these attributes?

regards,
Sajid
Ankit Doshi
Ranch Hand

Joined: Dec 04, 2002
Posts: 222
You have to specify the transaction attribute for the finder, select and home business methods in the deployment descriptor, similar to the way you define transaction attributes for the business methods of the bean.

Refer to this page on Frederic's site for more details.

Hope this clarifies your doubt.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Transaction Doubt
 
Similar Threads
Differences
Do we need specify transaction attribute for ejbRemove of Entity Bean
Transaction EJB session bean
Transaction Attributes Requirement
CMP Bean deployment problem