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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:38:27+00:00 2026-05-15T15:38:27+00:00

Im working in a WebSphere Application Server 7, JDK 1.6 and Oracle 11g. Im

  • 0

Im working in a WebSphere Application Server 7, JDK 1.6 and Oracle 11g.

Im always receiving this error when using an ejb.

[7/1/10 17:12:28:770 BOT] 00000013
LocalTranCoor W WLTC0033W: Resource
jdbc/oraDS11 rolled back in cleanup of
LocalTransactionContainment.
[7/1/10
17:12:28:773 BOT] 00000013
LocalTranCoor W WLTC0032W: One or
more local transaction resources were
rolled back during the cleanup of a
LocalTransactionContainment.

This is how im getting the connection from the datasource in WAS.

javax.sql.DataSource ds = (javax.sql.DataSource) naming.lookup("DataSource");
conn= ds.getConnection();

Any help will be appreciated…

  • 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-15T15:38:28+00:00Added an answer on May 15, 2026 at 3:38 pm

    From the error message, you are doing some work inside a local transaction and not committing it. The uncommitted work gets rolledback by the container at the end of the method (by default).

    This answer to Datasource rollback in WAS6.0 summarizes all this pretty well and since there is no real point at paraphrasing it, I’m quoting it below.

    A LocalTransactionContainment is what
    you get in the absence of a global
    (XA) transaction. The message
    indicates that you performed some
    local transaction work as part of that
    containment scope (method or activity
    session) and then did not commit. The
    default behaviour (controlled by
    unresolved-action) is to rollback any
    uncommited work at the end of the
    scope. You have a number of options:

    • Explicitly commit the local transaction

      connection.commit(); // after the work has been performed
      
    • Change the data source to use auto-commit

      connection.setAutoCommit(true); //
      

      before the connection is used

    • Place the work within a global transaction

      Context ic = new InitialContext();
      UserTransaction ut =
      (UserTransaction) ic.lookup("java:comp/UserTransaction");
      ut.begin();
      // use connection here
      ut.commit();
      
    • Change the unresolved-action to commit
      Select the ‘Servlets’ tab on
      the deployment descriptor editor and
      then select the servlet in question.
      Under ‘WebSphere Extensions’ and then
      ‘Local Transaction’ set the
      ‘Unresolved Action’ to ‘Commit’ from
      the drop-down menu.

    I’d suggest committing the work explicitly (and reading the whole answer).

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

Sidebar

Related Questions

I am working on WebSphere application server recently. And now i have to use
I'm using IBM RAD as the IDE and Websphere Application Server v6.0 to deploy
I'm trying to get a rather JDK-sensitive piece of Oracle software working with Websphere,
I have a Websphere Portal application containing several portlets for which I'm currently working
I am working on a web application that is deployed to Websphere as a
I'm working on a Java EE 5 application running on Websphere 7.0, and am
Working on a console application using Delphi 7, and have run into a problem.
I am currently using the Spring 3.0 framework in a websphere 6.1 environment. The
JSF 1.1 and websphere 6.1 was working properly in my case. Once I deployed
I'm working on a project which includes persistence library (JPA 1.2), EJB 3 and

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.