Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6882019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:12:07+00:00 2026-05-27T05:12:07+00:00

Do I need an application server for transaction management?, really. My question is for

  • 0

Do I need an application server for transaction management?, really.

My question is for Spring framework.
They said (Spring Documentation),

http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/transaction.html#d0e20594

“Typically you need an application server’s JTA capability only if your application needs to handle transactions across multiple resources”,
I use Jboss AS Server and JBoss can provide connections from a connection pool and manage transactions.
My configuration file use (local):

<!-- Transaction Config -->
<bean id="transactionManager"
      class="org.springframework.orm.hibernate3.HibernateTransactionManager"
      p:sessionFactory-ref="sessionFactory"/>

Do I need to change to (Global):

<bean id="txManager" 
      class="org.springframework.transaction.jta.JtaTransactionManager"/>

I order to use connection pool from Jboss.
Spring documentation say :

In particular, you do not need an application server simply for declarative transactions through EJBs. In fact, even if your application server has powerful JTA capabilities, you may decide that the Spring Framework’s declarative transactions offer more power and a more productive programming model than EJB CMT.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:12:08+00:00Added an answer on May 27, 2026 at 5:12 am

    Usage of ApplicationServer to provide transaction management depends on what is your usecase,

    If your transaction is distributed (spanning multiple parties) then you would like to use JTA transaction capabilities, for plain database transaction you dont need application server and Spring built in transaction capability is more than enough.

    Though it also depends on your architecture defined for your application, at some organization it is kind of a practice to use JTA even though the transaction boundary is limited and doesn’t require distributed transaction.

    You may wish to read something about distributed transaction to decide if you would need JTA or just Spring local transaction.

    Some references:

    http://www.javaworld.com/javaworld/jw-04-2007/jw-04-xa.html

    http://en.wikipedia.org/wiki/Java_Transaction_API

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to disable PUT, DELETE & TRACE HTTP requests on my Application Server,
I need to detect information about the Application Server my EJBs are running in.
I'm looking to a design a protocol for a client-server application and need some
I have a client server application in which I need to transmit a user
I have a client server application in which the server and the client need
In the java web application need to select the file from server and print
We need to build an administration portal website to support our client/server application. Since
I have a client/server application that communicates with .Net remoting. I need my clients
I need to write a web application using SQL Server 2005, asp.net, and ado.net.
I need to server parts of my application from different domains. To be precise

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.