You must use a user transaction created in your servlet, and configure all your beans 
with transaction type set to "required".

Code for your servlet:


  | try{
  |     ctx = new InitialContext(); 
  |     tx = (UserTransaction)ctx.lookup("UserTransaction"); 
  |     tx.begin(); 
  |     ...
  |     //Do what you want with your beans
  |     ...
  |     tx.commit();
  | } catch (Exception e) {
  |     tx.rollback();
  | } finally {
  |    ctx.close();
  | }
  | 

Since the Arjuna integration onto JBoss, I think that JBoss supports Natively JTS 
(which is not part of EJB spec) without specific configuration.

Hope this helps you


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

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


-------------------------------------------------------
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