Identify all correct requirements for a CMP entity bean class? [Check all correct answers]
1 The class must be defined as public. 2 The class must define a public constructor that takes no arguments. 3 The class must not be defined as abstract. 4 The class must define the finalize() method. 5 The class must implement, directly or indirectly, the javax.ejb.EntityBean interface.
The correct answers are 1 2 and 5 .
why should 2 be correct? . In the enterprise bean we dont declare a zero args public constructor explictly .
10.6.2 Enterprise Bean Class The following are the requirements for an entity bean class: The class must implement, directly or indirectly, the javax.ejb.EntityBean interface. The class may implement, directly or indirectly, the javax.ejb.TimedObject interface. The class must be defined as public and must be abstract. The class must be a top level class. The class must define a public constructor that takes no arguments.The class must not define the finalize() method
Thanks
-- Ravi
[ March 25, 2005: Message edited by: Ravindra Janapareddy ] [ March 25, 2005: Message edited by: Ravindra Janapareddy ]