Question :What should you do in a passivate method? (EJB)
Answer :You try to make all nontransient variables, which are not one of the
following to null. For the given list the container takes care of serializing
and restoring the object when activated.
Serializable objects, null, UserTransaction, SessionContext, JNDI contexts
in the beans context, reference to other beans, references to connection
pools.
Things that must be handled explicitly are like a open database connection
etc. These must be closed and set to null and retrieved back in the activate
method.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment