in Technology by
What if you need to span your transaction across multiple Servlet invocations in JBOSS?

1 Answer

0 votes
by

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 an SFSB with a JTA transaction, the association between the bean instance and the transaction is retained across multiple client calls.

Related questions

0 votes
    How can you start a JTA transaction from a Servlet deployed on JBoss?...
asked Jun 5, 2021 in Technology by JackTerrance
0 votes
    The transactions that span across multiple services are handled by (a)logging queries in DBs (b)DML commands (c)Event driven Architecture (d)pre-compiled queries...
asked Oct 21, 2020 in Technology by Editorial Staff
0 votes
    The transactions that span across multiple services are handled by ___________. A. DML commands B. Pre-compiled queries C. Logging queries in DBs D. Event driven Architecture...
asked Jan 10, 2023 in Education by JackTerrance
0 votes
    What version of JBoss AS do I need to run Seam?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    For a transaction to be durable, its changes need to be written to ________ storage. (a) Volatile storage ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    You are working with this XML code snippet from the XML document cars.xml. You need to return the information about the cars ... D.doc("cars.xml")/cars/car[integer(year) > 2000]...
asked Mar 10, 2023 in Technology by JackTerrance
0 votes
    You need to ensure that Azure DNS can resolve names for your registered domain. What should you implement? A. An MX Record B. A Secondary Zone C. A CNAME Record D. Zone Delegation...
asked Nov 20, 2022 in Education by JackTerrance
0 votes
    How do you monitor JBoss and detect the bottleneck of an application?...
asked Jun 5, 2021 in Technology by JackTerrance
0 votes
0 votes
    Which method receives the return value of setTimeout() to cancel future invocations? (a) clearTimeout() (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    In SQL, which command is used to issue multiple CREATE TABLE, CREATE VIEW and GRANT statements in a ... A Simple Transaction Model in chapter Transactions of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Should we make the resources thread safe explicitly if they are made to share across multiple clients?...
asked Jun 23, 2021 in Technology by JackTerrance
0 votes
    Consider that you have to move data over long distances using the internet across countries or continents to your Amazon ... Which method or service will you use for this purpose?...
asked Dec 3, 2020 in Technology by Editorial Staff
0 votes
    this will help lessen the attacks of viruses and increase life span of you computer Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    If you do not need any facts from the host, what command would you use? 1. gather_facts: no 2. gather_facts: False 3. gather_facts: no AND gather_facts: False 4. gather_facts: y...
asked Jan 27, 2023 in Technology by JackTerrance
...