• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Mandatory

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The 'caller' will get the exception.
 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic