This week's book giveaway is in the
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
EJB and other Java EE Technologies
Transaction Management: BMP & CMP
Joined: Dec 29, 2005
Mar 21, 2007 16:18:00
As part of my application implementation I am doing following
1. MDB gets triggered when system finds message in Q
2. MDB calls Stateless Session Bean
3. Stateless Session Beans performs operations on CMP Entiry Beans as well as BMP entity beans in following sequence
tx = getSessionContext().getUserTransaction();
Perform operation with CMP Entity Bean 1
Perform operation with another Stateless Session Bean
Perform operation with CMP Entity Bean 2
Perform operation with CMP Entity Bean 3
Perform operation with BMP Entity Bean 4
if (tx.getStatus() !=
If there a problem in BMP, I want all operations to roll back.
Am I doing anything wrong? Because I am getting problem in my BMP (last step) saying that
"illegal attempt to use multiple resources that have only one-phase capability".
Any suggestions ??
Joined: Jun 19, 2006
Mar 21, 2007 22:54:00
You need to check the database driver classes configured for your datasource. They should be XA Drivers. For example, for Oracle database one should use oracle.jdbc.xa.client.OracleXADataSource.
I agree. Here's the link:
- it saves me about five hours per week
subject: Transaction Management: BMP & CMP
Is the J2EE Composite Entity pattern dead?
Greetings! - "J2EE Performance Testing" book promotion
EJB Interview Questions
process of different EJB's Passivation and Activation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013