Question :What happens if remove( ) is never invoked on a session bean? (EJB)
Answer :In case of a stateless session bean it may not matter if we call or not as
in both cases nothing is done. The number of beans in cache is managed
by the container.
In case of stateful session bean, the bean may be kept in cache till either
the session times out, in which case the bean is removed or when there is
a requirement for memory in which case the data is cached and the bean is
sent to free pool.
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
What happens if remove( ) is never invoked on a session bean (EJB)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment