Interview Question in JBoss


 

Interview Question :: span your transaction across multiple Servlet invocations?

 What if you need to span your transaction across multiple Servlet invocations ?

by ksk
VoteNowAnswers to "span your transaction across multiple Servlet invocations?"

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. 

by ksk