aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes HFEJB p.561: Help needed to fill Exception Chart for Remote and Local Clients 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 "HFEJB p.561: Help needed to fill Exception Chart for Remote and Local Clients" Watch "HFEJB p.561: Help needed to fill Exception Chart for Remote and Local Clients" New topic
Author

HFEJB p.561: Help needed to fill Exception Chart for Remote and Local Clients

Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi all,

please view my assumptions (in RED) for the exception chart provided in HFEJB on p. 561, I'm not sure whether it's correct. Do you agree on them .



Regards,
Darya


SCJP, SCJD, SCWCD, SCBCD
Ramakrishnan Viswanathan
Ranch Hand

Joined: Aug 24, 2005
Posts: 90
#2 - Remote - java.rmi.NoSuchObjectException
Local - javax.ejb.NoSuchObjectLocalException

#6 - Ref 7.5.6 of Spec
Clients are not allowed to make concurrent calls to a stateful session object. If a client-invoked business method is in progress on an instance when another client-invoked call, from the same or different client,
arrives at the same instance of a stateful session bean class, the container may throw the java.rmi.RemoteException to the second client,if the client is a remote client, or the javax.ejb.EJBException, if the client is a local client. This restriction does not apply to a stateless
session bean because the container routes each request to a different instance of the session bean class.


Regards<br />Ram<br /> <br />SCJP 1.4, SCBCD 1.3, (SCEA)
Muhammad Saeed
Greenhorn

Joined: Sep 10, 2005
Posts: 23
#6 ---->>

In this case the rlevant section in EJB Spec is 7.6, Page No.79;

An attempt to remove a session object while the object is in a transaction will cause the container to throw the avax.ejb.RemoveException to the client.


Hence, RemoveException seems to be right in given scenario.

Regards


SCJP<br />SCBCD<br /> <br />***Brains, like hearts, go where they are appreciated***
Muhammad Saeed
Greenhorn

Joined: Sep 10, 2005
Posts: 23
Sorry, my fault... please read #6... as #7 in the previous post.

Regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HFEJB p.561: Help needed to fill Exception Chart for Remote and Local Clients