It's not a secret anymore!*
The moose likes EJB and other Java EE Technologies and the fly likes Difference between the Create methods... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Difference between the Create methods..." Watch "Difference between the Create methods..." New topic
Author

Difference between the Create methods...

vishnu mohan
Greenhorn

Joined: Feb 01, 2002
Posts: 14
what is the difference between the session bean's CREATE method and the entity bean CREATE method?
Sam Wang
Ranch Hand

Joined: Jul 17, 2001
Posts: 95
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.


SCJP(2001)
vishnu mohan
Greenhorn

Joined: Feb 01, 2002
Posts: 14
hi Stub Wang!
I got the things... thanks for ur reply..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between the Create methods...