Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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...
 
Create symphonies in seed and soil. For this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic