• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

ebjCreate for MDB

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A message-driven bean class can define one = true
OR
more ejbCreate methods = false
true || false = true
The answer is true.
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic