File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
#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.
 
Muhammad Saeed
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
#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
 
Muhammad Saeed
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic