This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic