What are the required methods to implement EJB architecture?

Answers were Sorted based on User's Feedback



What are the required methods to implement EJB architecture?..

Answer / 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

What are the required methods to implement EJB architecture?..

Answer / bhuvana

yes

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More EJB Interview Questions

What is bean in ejb?

0 Answers  


Is ejb be called from another ejb? If yes then how?

0 Answers  


Can EJB made to handle multiple transactions?

0 Answers  


Is udp stateless?

0 Answers  


What were entity beans?

0 Answers  


What do you mean by ‘hot deployment’ ?

0 Answers  


Explain transaction and various methods to manage it?

0 Answers  


Can tomcat run ejb?

0 Answers  


How is consistency maintained by Stateful Session through transaction updates ?

0 Answers  


Is state maintained by a Stateless bean?

0 Answers  


Is it possible to write two EJBs that have different bean classes, but they share same Remote interface and Home interfaces?

1 Answers  


Can you be deported if you are stateless?

0 Answers  


Categories