• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Transactions

 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just read a blog on the web where a developer was complaining becasue of the following instance:
MethodA and MethodB are CMT methods who are defined as RequiresNew. Supposedly, they maintain when MethodA is called through the remote interface, a new transaction starts and then when MethodB is called through the local interface, the first transaction is not suspended and a new transaction is not started because MethodB was called locally. They maintain that the new transaction only starts when the remote is called.
This flys in the face of everything I've read about EJB transactions or the instances where I've used them, however, I thought that maybe it was because they were using an EJB container that didn't conform to the specs.
When a method is declared RequiresNew, it should start a new transaction, regardless of whether it was called locally or through the remote, right? Is anyone aware of a EJB container that does what was described above?
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I work with IBM's WebSphere and use RequiredNew in stateless beans, which are used localy from other remote beans. These local beans start their own new transactions, which commit and/or rollback independently from the transactions of the remote beans.
Regards,
Viktor
reply
    Bookmark Topic Watch Topic
  • New Topic