Question :Question For Entity Beans, What happens to an instance field not mapped
to any persistent storage,when the bean is passivated? (EJB)
Answer :The specification infers that the container never serializes an instance of
an Entity bean (unlike stateful session beans). Thus passivation simply
involves moving the bean from the "ready" to the "pooled" bin. So what
happens to the contents of an instance variable is controlled by the
programmer. Remember that when an entity bean is passivated the
instance gets logically disassociated from it's remote object.
Be careful here, as the functionality of passivation/activation for Stateless
Session, Stateful Session and Entity beans is completely different. For
entity beans the ejbPassivate method notifies the entity bean that it is
being disassociated with a particular entity prior to reuse or for dereferenc.
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
Question For Entity Beans, What happens to an instance field not mapped
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment