File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes create() and remove() of stateless Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "create() and remove() of stateless " Watch "create() and remove() of stateless " New topic
Author

create() and remove() of stateless

Yi Si
Ranch Hand

Joined: Nov 12, 2003
Posts: 54
First client can invoke create() and remove() on stateless session bean
when client invoke create() on it just create EJBObject
when client invoke remove() on it just kill EJBObject.
above is my understanding, is right?


Sun(java)-SCJA SCJP SCWCD SCBCD SCDJWS SCEA<br />Sun(solaris)-SCSA SCSN<br />IBM-486 Object-Oriented Analysis and Design with UML Test <br />IBM Certified System Administrator - WebSphere Application Server Network Deployment V6.0<br />Oracle-OCA
Janne Karhu
Ranch Hand

Joined: Oct 29, 2003
Posts: 33
I think you are right (at least from the client point of view) - please examine OID figures from pages 90-93 (OID=Object interaction diagrams) in the EJB 2.0 specification.

Originally posted by si yi:
First client can invoke create() and remove() on stateless session bean
when client invoke create() on it just create EJBObject
when client invoke remove() on it just kill EJBObject.
above is my understanding, is right?
George Thomson
Ranch Hand

Joined: Jul 09, 2003
Posts: 107
bean instance need not to be created at each time of invocation of create()method by client,
container just picks an instance of bean from the pool and attached to the bean process after setSessionBean() ....
thanks,


George Thomson<br />SCJP, SCWCD, SCBCD, IBM-141(XML), SCEA<br />......................................................................
Yi Si
Ranch Hand

Joined: Nov 12, 2003
Posts: 54
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create() and remove() of stateless
 
Similar Threads
Stateless Session Beans
Stateless session bean test
Getting EJBObject for SLSB in ejbCreate()
remove() method for stateless bean
Invoking remove( )