wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes what exception will be thrown CMT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "what exception will be thrown CMT? " Watch "what exception will be thrown CMT? " New topic
Author

what exception will be thrown CMT?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
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

Joined: May 29, 2003
Posts: 1258
javax.transaction.NotSupportedException sounds right to me, but I'd consult the EJB specs for an authoritative answer.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Sandesh Tathare
Ranch Hand

Joined: Jun 22, 2003
Posts: 82
The Container throws the java.rmi.RemoteException if client is a remote client, or javax.ejb.EJBException if client is a local client.


Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
 
Consider Paul's rocket mass heater.
 
subject: what exception will be thrown CMT?