MCQs > IT & Programming > Enterprise Java Beans - EJB > A heavy tool manufacturing company manages its business and production by using enterprise beans. A session bean named 'Status' is used to get the production status for the day. The following code gets the context:

Context initialContext = new InitialContext();

The bean provides a local client view. For the local home interface named 'StatusHome.' What should be the lookup?


Enterprise Java Beans - EJB MCQs

A heavy tool manufacturing company manages its business and production by using enterprise beans. A session bean named 'Status' is used to get the production status for the day. The following code gets the context:

Context initialContext = new InitialContext();

The bean provides a local client view. For the local home interface named 'StatusHome.' What should be the lookup?


Answer

Correct Answer: StatusHome statusHome = (StatusHome) javax.rmi.PortableRemoteObject.narrow(<br>initialContext.lookup("java:tools/env/ejb/status"),StatusHome.class);<br>

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Enterprise Java Beans - EJB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Enterprise Java Beans - EJB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it