Two Phase commit application scope connection pool

Posted on 2004-10-29
Last Modified: 2013-12-10

I am using MDB(Message driven Bean using EJB) using EJB and the application server used is weblogic8.1 . I have created the Application scope connection Pool.

I want to make the TwoPhaseCommit as "true" to commit the  non XA transaction.

Please help me to configure in weblogic 8.1  for Application scope connection Pool

Question by:ManojKBehera
    LVL 13

    Expert Comment

    Hi Manojk..
    What are the 2 different Datasources you want to do Distribited Transaction managment between them?

    Author Comment

    session bean and Message driven bean
    LVL 8

    Accepted Solution

    Message Driver Bean cannot be engaged in an existing transaction. Since the onMessage method is invoked by the container on receipt of a message to a queue/topic, the container always starts a new transaction for the bean.

    Only Required and NotSupported are allowed for container-managed transactions in MDB.

    Transaction Services for Message-Driven Beans

    As with other EJB types, message-driven beans can demarcate transaction boundaries either on their own (using bean-managed transactions), or by having the WebLogic Server container manage transactions (container-managed transactions). In either case, a message-driven bean does not receive a transaction context from the client that sends a message. WebLogic Server always calls a bean's onMessage() method by using the transaction context specified in the bean's deployment descriptor, as required by the EJB 2.0 specification.

    Because no client provides a transaction context for calls to a message-driven bean, beans that use container-managed transactions must be deployed using the Required or NotSupported transaction attribute in ejb-jar.xml.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
    This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 ( But the ability to create custom scanning profiles a…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now