Below is a question from a mock test for IBM 484. I dont think I understand the question well enough. Given an Order entity EJB and a single class loader, which of the following is a Singleton? (choose one only)
Although I dont understand the question very well, A and C dont make sense at all. Since there is nothing called a OrderHomeRemote and OrderRemote. I would rather choose D because there can be many instances of the bean and making it a singleton makes little sense. Am I on the right track? Any ideas? PK
I would say this is a very vaugu question. Without any giving any scenario making anything singleton never makes sense.
Joined: Sep 19, 2003
Howdy Folks, I remember this question from the pre-assessment/sample test. And I have passed the 484 back in August! I think the best answer is "A", by process of elimination:
"D" is kind of stupid (they are trying to catch you).
"B" cannot be correct... the containers has a pool to work with.
"C" cannot be correct... there will be a remote for every client.
Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
Joined: Oct 31, 2000
Hi Prakash... The answer for this question is A.I don't know what the test IBM 484 is about.But i learnt EJB using WSAD.So if u look the redbooks on WSAD,we will be given sample code as to how to locate beans using JNDI.There the utlity class uses a method called singleton, which is used to call the beans. There we have to specify the remote home interface as a parameter in calling the bean. So obviously the answer is A, which is the home remote interface name of the order entity bean. Hope this clears a bit. Radha.