Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between the Create methods...

 
vishnu mohan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between the session bean's CREATE method and the entity bean CREATE method?
 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello vishnu mohan.
In session bean,the create method is the start
of a serie of actions.The container create a
new session bean's impl class(or take it out
from the pool).If it's a stateless bean,it's
end.If it's a stateful bean,some user's data
is passed in the instance.
In entity bean,the create method means the
container get a instance of the impl bean's
class and load the data from some datasource
to this instance.Entity bean means data,however
session bean means action.
May this help you.Please tell me my fault if
there is.
 
vishnu mohan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Stub Wang!
I got the things... thanks for ur reply..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic