InterviewSolution
Saved Bookmarks
| 1. |
What If You Need To Span Your Transaction Across Multiple Servlet Invocations? |
|
Answer» You can’t with a Servlet. A JTA transaction MUST start and FINISH within a single invocation (of the SERVICE() method). You should consider using a Stateful SB. In a SFSB with a JTA transaction, the association between the bean instance and the transaction is retained across multiple client calls. You can’t with a Servlet. A JTA transaction must start and finish within a single invocation (of the service() method). You should consider using a Stateful SB. In a SFSB with a JTA transaction, the association between the bean instance and the transaction is retained across multiple client calls. |
|