What are the required methods to implement EJB architecture?

Answer Posted / john

The methods that have to be present in an EJB are as follows
setSessionContext()
ejbCreate()
ejbPassivate()
ejbActivate()
ejbRemove()

The methods
ejbPassivate()
ejbActivate()
will be left empty in case of Stateless Session beans as
they do not support Passivation and Activation

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can one EJB be called from within another EJB?

517


What are the key features of the ejb technology?

583


What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?

538


What is an ejb platform?

557


What are the design principles for ejb?

522






How is consistency maintained by Stateful Session through transaction updates ?

618


What is mdb in ejb?

517


Define Initial Context?

586


What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?

558


What does @inject mean in java?

642


What is ejb container in java?

515


What is enterprise javabeans (ejb) container?

534


What are the different kind of ejb's?

535


Name the acid properties of a transaction.

543


What ejb means?

527