• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Transaction question for attribute "Not Supported"

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .

 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic