• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction question for attribute "Not Supported"

 
Nikhil Pendharkar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am having an entity bean method which has CMT attribute "NotSupported"
. Session bean wants to call that method via its business method .
Session bean's method has explicitly started the transaction using UserTransaction object .
When I run through this scenario , I see that the entity bean method is never getting called , I suppose because it has attribute "NotSupported" ,and after few mins I get an exception that transaction is timed out and rolledback .
Is this the correct behaviour of container when a call is made to the method having CMT attribute "NotSupported" ? And if this is correct one , how should I handle the rollback situation in session bean which is making the call to entity bean's method .
 
Janne Karhu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the only thing the NotSupported does in your case is to suspend the transaction for the duration of the entity bean method call. So, the original transaction you started in your session bean continues normally after the entity bean method call has returned. The entity bean method in question runs without transaction.

Originally posted by Nikhil Pendharkar:
Hi ,
I am having an entity bean method which has CMT attribute "NotSupported"
. Session bean wants to call that method via its business method .
Session bean's method has explicitly started the transaction using UserTransaction object .
When I run through this scenario , I see that the entity bean method is never getting called , I suppose because it has attribute "NotSupported" ,and after few mins I get an exception that transaction is timed out and rolledback .
Is this the correct behaviour of container when a call is made to the method having CMT attribute "NotSupported" ? And if this is correct one , how should I handle the rollback situation in session bean which is making the call to entity bean's method .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic