• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 483
  • Last Modified:

Two Phase commit application scope connection pool

Hi ALL,

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

Thanks
Manojk
0
ManojKBehera
Asked:
ManojKBehera
1 Solution
 
petmagdyCommented:
Hi Manojk..
What are the 2 different Datasources you want to do Distribited Transaction managment between them?
0
 
ManojKBeheraAuthor Commented:
session bean and Message driven bean
0
 
kiranhkCommented:
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.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now