MCQs > IT & Programming > Enterprise Java Beans - EJB > The following method signature is found in an implemented entity bean named 'CustomerBean.' 'CustomerPK' is a class representing the primary key.

public CustomerPK ejbFindByPrimaryKey(CustomerPK key)
                throws FinderException

By context look up, a client gets the reference to the home object of the above bean, named 'custHome'. It gets the 'CustomerPK' class named 'PK' by a different method. The name of EJBObject is 'Customer', which represents a customer. Which of the following options will you select to invoke the above mentioned method in the client?



Enterprise Java Beans - EJB MCQs

The following method signature is found in an implemented entity bean named 'CustomerBean.' 'CustomerPK' is a class representing the primary key.

public CustomerPK ejbFindByPrimaryKey(CustomerPK key)
                throws FinderException

By context look up, a client gets the reference to the home object of the above bean, named 'custHome'. It gets the 'CustomerPK' class named 'PK' by a different method. The name of EJBObject is 'Customer', which represents a customer. Which of the following options will you select to invoke the above mentioned method in the client?



Answer

Correct Answer: Customer = custHome.findByPrimaryKey(PK);

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