I got the solution of my problem.
Let me explain this with an example.
There are 3 beans (BeanA-Stateless Session bean,BeanB-Stateless Session Bean and 
BeanC-entity Bean)
BeanA has methodA1
BeanB has method B1 and method B2
BeanC has a method C1
and the flow was 
Method A1 calls method B1 and method B1 calls B2 and B2 calls C1

What i wanted that any call reaching to the Method C1 at BeanC should always get "New" 
Transaction.

Since for some reason i couldnt make the transaction attribute of methid C1 as 
"RequiresNew" so  i had to make it "Requires" and  made the transaction attribute of 
method B2 as "NotSupported" and didnt set any transaction attribute explictly for 
method B1 so it took what was at Bean B level which was "Requires".

So when ever there use to be an exception at method C1 it use to flow back to method 
B2 (Not Supported Transaction) and then tried to go back to method B1  (Requires) and 
it use to try to roll back at this level and it didnt find any transaction coz B2 had 
not supported.

So when i made B1 also as "Not Supported" , it worked fine.

Thanks Shashi Velur for your help !

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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to