This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have some questions about transaction propagation between the client and EJB. Can someone clarify the following scenarios? Assume the client is a Web tier client like servlet in all the scenarios described.
Question: Is the bean method part of client transaction in the above scenarios? For stateful session bean, the container transaction ends when the bean method finishes. When does it end in the above scenario?
Client starts transaction Invokes bean method with NotSupported or no transaction attribute Client ends transaction
Question: Is the bean method part of client transaction in the above scenario?
4) Stateless Session Bean BMP
Client starts transaction Invokes bean method1 that starts user transaction Invokes bean method2 that ends user transaction Client ends transaction
Client starts transaction Invokes bean method1 which has no user transaction Client ends transaction
Question: What is the transaction propagation in the above 2 scenarios?