Hi
In case of Bean managed transactions in stateful session beans u dont
implement Session Synchronization.it is
only for container managed transactions.here i am giving a peice of code u
can follow the same for your business method.
here iam getting connection seperately but u r getting connection in
business method it self.So u have to set setAutoCommit to false to your
connection.
Bye
koppala
public void ship (String productId, String orderId, int quantity) {
try {
con.setAutoCommit(false);
updateOrderItem(productId, orderId);
updateInventory(productId, quantity);
con.commit();
} catch (Exception ex) {
try {
con.rollback();
throw new EJBException("Transaction failed: " +
ex.getMessage());
} catch (SQLException sqx) {
throw new EJBException("Rollback failed: " +
sqx.getMessage());
}
}
}
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".