View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820328#3820328

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820328

Hello JBoss Experts,



i am developing a J2EE application with JBoss 2.4.4 and a mySQL 4.1 database with 
transaction support. 

I have used one of the latest JDBC drivers for mySQL 
(mysql-connector-java-3.0.8-stable-bin.jar).



I have developed a stateful session bean that calls 2 methods at a data access layer 
(simple Java Bean methods). 

Each of these methods gets its own database connection from a defined XA-datasource 
and creates and executes prepared

statements. After the methods execute their database commands they close the 
connection.



The session bean that calls the data access methods uses transaction attribute 
"Required" for all methods. When the

second method fails, the application server does not rollback the transaction. 



Is one of the used components not 2-phase commit enabled?

Can someone give a complete configuration example to make 2-phase commit work?



When JBoss comes up there is a message from StatelesssessionBean container: No 
resource manager found

Do I have to configure a resource-manager in jboss.xml ?



This is a simple representation of the session bean method.



void SessionBeanMethod() {

  method1();

  method2();

}






-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to