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 6982611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:18:40+00:00 2026-05-27T18:18:40+00:00

I am new to Spring and hibernate please help, I am using (Jboss 6.0

  • 0

I am new to Spring and hibernate please help,

I am using (Jboss 6.0 Final as Server)

org.springframework.transaction.jta.JtaTransactionManager

as bean with properties set

transactionManagerName as java:/TransactionManager and

userTransactionName as java:comp/UserTransaction.

In code I have set

jtaTxManager

property thr setters.

Then

javax.transaction.TransactionManager tx = jtaTxManager.getTransactionManager();

and then transaction is started using

tx.begin()

statement.

I have used

sessionFactory.getCurrentSession()  

to get session of hibernate

at last I have used

tx.commit() 

I am using hibernate to save multiple records within jta transaction
but If in between any database error occurs between some record like constraint violation exception getting thrown on tx.commit() which is

javax.transaction.RollbackException

which when catch I used to call tx.rollback() but my transaction is not getting rollback and getting following exception on tx.rollback().I have not set any type auto commit property in hibernate properties.

But my first of records in gets saved in database ideally they should not saved but while rollback this exception occurs so i think that’s why they are getting saved.

java.lang.IllegalStateException: BaseTransaction.rollback - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:158)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114)
  • 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-27T18:18:40+00:00Added an answer on May 27, 2026 at 6:18 pm

    This issue was due to datasource configuration, forgot to mentioned earlier,

    Removed from application-context.xml

    org.springframework.jdbc.datasource.DriverManagerDataSource

    and rather than this, used jndi datasorce of jboss configured in oracle-xa-ds.xml

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

Sidebar

Related Questions

I m new to Jboss, but I have multiple web applications each using spring-hibernate
Please help me with this hibernate problem, I'm new to hibernate and still trying
I'm new to spring mvc, roo and hibernate. I'm using Oracle XE 10g database.
i am new in integration of jsf 2.0 spring 3.1 and hibernate 4.1. how
I'm fairly new to Spring and I need a bean that has two properties
I am new to Spring Batch. I have following question. I am using Spring
I'm relatively new with hibernate so please be gentle. I'm having an issue with
I'm new to Hibernate ORM and I think you can help me understand it
Please help me. When i try to create new row in database i receive
i am new to spring/hibernate and was trying out my first app. I got

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.