You need to add these in your ejb-jar
---------------------------------------------

  <container-transaction>
    
      <ejb-name>YourEJBname</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>YourMethodName</method-name>
    
    <trans-attribute>RequiresNew</trans-attribute>
  </container-transaction>

-----------------------------------------------
   for the trans-attribute tag, there are a few option and you can read from 
sun.

   in >YourMethodName, you may set up a condition and do the rollback as :
-----------------------------------------------

context.setRollbackOnly();
       } catch (Exception ee) {
        ee.printStackTrace();
       }
-----------------------------------------------


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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to