Life cycle methods in stateless Session Beans?

Answer Posted / krishna

Methods are:
0) Class.newInstance()
1) ejbCreate()
2) setSessionContext()
3) ejbCreate()


Does Not Exist state & Method-Ready Pool are two status of the Beans


as per my knowledge Stateless Session Beans will not contain ejbActivate()& ejbPassivate() methods

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is ftp stateful?

521


How is consistency maintained by Stateful Session through transaction updates ?

610


How to invoke ejb from java client?

506


How does the server decide which beans to passivate and activate?

525


What are the advantages of ejb?

540






How does ejb invocation take place?

566


Can beans who are involved in transaction have 'passivation' process?

534


What is the difference between message driven beans and stateless session beans?

514


Why do we use ejb?

517


What is EJB object?

579


What is Session Bean Interface?

558


An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

557


What are the types of enterprise bean?

558


Is state maintained by a Stateless bean?

556


What does statelessness mean?

516