• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!