Interviewer And Interviewee Guide

JBoss Interview Question:

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

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online JBoss Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.