posted 20 years ago
[ejbSpecs]
SessionBean
The method arguments must be legal types for RMI/IIOP if there is a create<METHOD> corresponding to the ejbCreate<METHOD> method on the session bean�s remote home interface.
A stateless session bean must define a single ejbCreate method, with no arguments.EntityBean
public PrimaryKeyClass ejbCreate<METHOD>(...);
If the ejbCreate<METHOD> method corresponds to a create<METHOD> on the entity bean�s remote home interface, the method arguments and return value types must be legal types for RMI-IIOP.
Specs specifically mentions stateless session bean must/can have ejbCreate with no arguments but it doesn't say anything about stateful session bean or entity bean and if specs leave it open for the developer to draw conclusion then it doesn't mean that it is valid to have a ejbCreate with no arguments in it in a stateful or entity bean.
Thanks
-- Ravi
[ March 31, 2005: Message edited by: Ravindra Janapareddy ]
SCJP, SCJD, SCWCD, SCBCD, SCEA