This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

mock exam question - ejbcertifate.com

 
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...
 
Cowgirl and Author
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...
 
It's feeding time! Give me the food you were going to give to this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!