(1) This one is from www.ejbcertificate.com (Exceptions-3/10 ) Which of the following statements are true when a session bean's client receives a java.rmi.RemoteException? [Check all correct answers]
1 The client will never receives a java.rmi.RemoteException. 2 The client calls the session bean from another JVM. 3 The client calls the session bean from within the same JVM. 4 The container throws a java.rmi.RemoteException if the container performs a transaction rollback. 5 The throws clauses of all methods in the remote home and component interface must declare a java.rmi.RemoteException.
Answer 2, 4 and 5 have been given as correct. As per the specs remote view is location independent -- Specs page 52. Hence I think that it is not necessary that the client calls the session bean from another JVM. Am I correct ?
(2) Are the values for <env-entry-value> case insensitive (as given in explanation of JDiscuss Question ID 1680). I need some help in this regard as specs page 460 says that content of XML elements is in general case sensitive.
I'm not sure I completely understand the way the question is worded... but you are absolutely right that a client can get a Remote exception even if it is in the same JVM as the bean. If Bean A has a Remote interface reference for Bean B, then it makes no difference whether the beans are running in the same Container JVM or not--a RemoteException is still a RemoteException
So answer 2 and 3 don't seem relevant given the way the question is worded, but I might be interpreting it incorrectly...