Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what exception will be thrown CMT?

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In CMT,
If a first method which in transaction calls second method which trans-attribute value is NEVER , then second method throws exception.
this is fine.

but What exception will be thrown?

Yamini.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.transaction.NotSupportedException sounds right to me, but I'd consult the EJB specs for an authoritative answer.
 
Sandesh Tathare
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Container throws the java.rmi.RemoteException if client is a remote client, or javax.ejb.EJBException if client is a local client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic