Tuesday, November 29, 2011

How can we call cmp?

First of all the question is not very clear and specific. But I hope this helps:You call create() method of the home object which in turn calls the ejbCreate() of the bean and as you mentioned that this a CMP - so within the beans ejbCreate() you can call the abstract getter/setter methods whereby the container generated subclass of the bean comes in to the picture and performs persistence operation.
Category:EJB Interview Questions

No comments:

Post a Comment