Hi,

If your session bean is declared as "Container-managed transactions", your problem 
seems as a JBoss bug.

Perhaps try to set transaction-type to Bean, and then create a user transaction within 
your addAttendance method.

The user transaction can be obtain with:

  | try {
  | ctx = new InitialContext(); 
  | tx = (UserTransaction)ctx.lookup("UserTransaction"); 
  | tx.begin(); 
  | ...
  | tx.commit();
  | } catch (Exception e)
  | ...
  | tx.rollback();
  | }
  | 
  | ctx.close();
  | 

I'm not sure you can obtain a transaction with 
sessionContext.getUserTransaction(); in this case.

Good luck ;-)


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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to