Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?



Which of the recommended practices to be performed in the ejbpassivate() method of a stateful sessio..

Answer / Shikha Dixit

In the ejbPassivate() method, you should set all instance variables to their default values and detach any objects that are not serializable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More EJB Interview Questions

What does @singleton annotation do?

1 Answers  


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?

1 Answers  


What are the design principles for ejb?

1 Answers  


Enlist the changes in EJB 2.1 ?

1 Answers  


Driver manager is a class/interface.

5 Answers   Bally Technologies, College School Exams Tests, TCS,


Can tomcat run ejb?

1 Answers  


What are the key benefits of the ejb technology?

1 Answers  


Can Container Managed Bean-Managed Transaction ?

3 Answers   Sony,


How does legacy object mapping work?

1 Answers  


Is decorator an ejb design pattern?

1 Answers  


What are the attributes of transaction in ejb?

1 Answers  


Is ejbCreate() method mandatory while defining a Session Bean?

1 Answers  


Categories