A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
subject: Transaction Management: BMP & CMP
Is the J2EE Composite Entity pattern dead?
Greetings! - "J2EE Performance Testing" book promotion
process of different EJB's Passivation and Activation
EJB Interview Questions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014