Q. The statement is true or false: A message-driven bean class can define one or more ejbCreate methods a) True b) False I choose True. Spec says that mdb has to define a ejbCreate method with no argument. But it does not say that one and exactly one is allowed. For a stateless session bean, its component interface has to define exactly one create method. softSCBD's answer is False. I cannot find the evidence to support softSCBCD's claim. What's your opinon? Thanks, Jack
A message-driven bean class can define one = true OR more ejbCreate methods = false true || false = true The answer is true.
posted 13 years ago
You need to define an ejbCreate() method with no parameters for an MDB. If you define other ejbCreate() methods with different parameters, they will not be called by the container for MDB or SLSB and hence there is no use for such methods. From the exam point of view, U cannot have multiple ejbCreate() methods for MDB or SLSB. [ February 23, 2004: Message edited by: Vish Kumar ]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads