• 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?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!