This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock exam question - ejbcertifate.com

 
Rajesh Srivastava
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone

(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.


When I see through the fog I see myself...
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

cheers,
Kathy
 
Rajesh Srivastava
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the confirmation.
It feels great to have a reply from a genius like u


When I see through the fog I see myself...
 
Rajesh Srivastava
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the confirmation.
It feels great to have a reply from a genius like u


When I see through the fog I see myself...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic