Re: Question on Transaction involved in Enterprise beans
Sunday, December 2, 2001 08:07 AM
it depends. it depends on the transactional attributes of each of the four methods in the enterprise bean. the transaction will start with the first method that specifies transactional properties that require a transaction. if you are calling 4 business methods on the bean and three of the methods call have transactional attribute set to NEVER and last one has transactional attribute set to REQUIRED, the transaction will no get created until the last method is invoked. you specify transactional attributes in the deployment descriptor for each method of each bean. when transaction starts and ends depends on how you specified transactional attributes in the deployment descriptor.