How does a client application that employs, say, session beans, obtain a JTA UserTransaction object from the EJB server?
Location: http://www.jguru.com/faq/view.jsp?EID=2573 Created: Dec 14, 1999 Author: Jerry Smith (http://www.jguru.com/guru/viewbio.jsp?EID=9) It doesn’t. Session beans may obtain a JTA UserTransaction object for method-level bundling of business logic-related operations as a logical unit of work. If a client application must employ JTA transactions, for whatever reason, doing so is independent of the fact that it also uses enterprise beans (which implement their own transaction management via the EJB server); hence, the client must obtain the UserTransaction object in some other context, for example, from the J2EE environment.