Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Mandatory

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
if we call a method(in bean A) with mandatory attribute, from another bean (bean B) Which bean will get TransactionRequiredException/local?
Bean B or bean A?
Amol
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 'caller' will get the exception.
 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

From the specs (18.4.2.2)


The javax.transaction.TransactionRequiredException is a
subclass of the java.rmi.RemoteException. It is defined
in the JTA standard extension.
The javax.ejb.TransactionRequiredLocalException is a
subclass of the javax.ejb.EJBException.

The javax.transaction.TransactionRequiredException or
javax.ejb.TransactionRequiredLocalException informs the
client that the target enterprise bean must be invoked
in a client´┐Żs transaction, and that the client invoked
the enterprise bean without a transaction context.

This error usually indicates that the application was not
properly formed.



Cheers,

Gian
    Bookmark Topic Watch Topic
  • New Topic