[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Two Phase commit application scope connection pool

Posted on 2004-10-29
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

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

Author Comment

ID: 12465296
session bean and Message driven bean

Accepted Solution

kiranhk earned 2000 total points
ID: 12466900
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.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
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 …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

656 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