>From the J2EE API:
anonymous wrote : setRollbackOnly
  | 
  | public void setRollbackOnly()
  |                      throws IllegalStateException
  | 
  |     Mark the current transaction for rollback. The transaction will become 
permanently marked for rollback. A transaction marked for rollback can never 
commit. Only enterprise beans with container-managed transactions are allowed 
to use this method.
  | 
  |     Throws:
  |         IllegalStateException - The Container throws the exception if the 
instance is not allowed to use this method (i.e. the instance is of a bean with 
bean-managed transactions).

I'm a little confused - aren't we getting the user transaction from the 
SessionContext in the SessionBean? Are you saying that:
sessionContext.setRollbackOnly();
is different from
UserTransaction ut = sessionContext.getUserTransaction();
  | ut.setRollbackOnly();?

If so - in what way?

Thank you very much.

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to