If i call remove() method on remote object, what happen?

If we call remove() method on remote object, ejb container removes the one row data in a table. if we call a remove() method on home object, container removes object home object.

Showing Answers 1 - 7 of 7 Answers

Santosh

  • Oct 17th, 2006
 

If we call remove() method on remote object, the HOME class remove () method will be called. and the current bean will be removed from the memory.

  Was this answer useful?  Yes

tarunarora

  • Nov 14th, 2006
 

Hi All,remove() method for session bean and entity bean behaves in a very different way...so we need to talk in context to these.remove() in Session bean means that ur done with ur work...n container can remove this bean from the memory so that it frees the resouces....but remove() in entity bean means...removing the bean and undelying entity from the persistence store(i.e. record from the database...hope this makes somewat clear...for more doubts reply...

  Was this answer useful?  Yes

Arun Kumar

  • Nov 23rd, 2006
 

remove() method call from the client on a session bean instance differs from stateless and statefull bean.For a stateless session bean the remove() does not cause any effect on the bean instance and it is not removed from the memory.The container can remove the bean and put in the pool without the remove() call from the client..

But in statefull session bean the remove() call from the client will remove the instance of the bean from the container memory and it goes back to Does not Exist State..

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions