What is bean managed transaction?A bean managed transaction is an explicitly bounded for a specific transaction that is handled by a bean. The bean managed transaction is considered, in a situation as container-managed transaction has a limitation. The limitation is, the association with a specific / several transactions is not certain and it is difficult to make coding the bean. In this specific circumstance, the bean managed transaction yields good results.
What is bean managed transaction?a. When an enterprise bean defines the boundaries of the transaction it is called bean-managed transaction. In bean-managed transaction demarcation, the code in the session or message-driven bean explicitly marks the boundaries of the transaction. b. Although beans with container-managed transactions require less coding, they have one limitation: When a method is executing, it can be associated with either a single transaction or no transaction at all. If we use bean managed transaction we are responsible for programming transaction logic into your application code. That is we are responsible for issuing a 'begin' statement and either a 'commit' or an 'abort' statement. c. The benefit of bean managed transaction is that as a developer you have full control over transactional boundaries. For instance, you can run series of mini transactions within a bean's method using bean managed transaction.
|
20 JBOSS Interview Questions and AnswersJBOSS interview questions and answers for freshers and experienced, JBOSS interview FAQ - What is JBOSS?, What is JBoss cache in short?, What is JBoss JBPM?, How do you monitor JBoss and detect the bottleneck of an application?