Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Constructors

 
Claudio Malso
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm very confused in mock exams about constructor in EJB...
Could someone tell us when is a constructor required/prohibited in PKclass, Session, Entity etc ?
Thanxs,
Roger
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK,
PK class must have a public no-arg default constructor.
SessionBean and entity bean class must have a public no-arg default constructor. This is used by the container to create bean instances.
Comments?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic