jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

Question I have a factory object which returns a transient CORBA object to the client which will be a servlet. The object reference will be stored in the servlet session object on a per user basis. When the client finishes with the Corba object do I need to l do any freeing up of resources on it and if so what methods do I neeed to call. At the moment I am calling POA_.deactivate_object(POA_.reference_to_id(object)) in a release method on the Factory. Is this correct?
Derived from A question posed by Nicholas Wilson
Topics Distributed computing:CORBA
Author Aditya Kiran Gavvala
Created Mar 4, 2001 Modified Mar 5, 2001


Answer
deactivate_object(..) call removes an entry from ObjectActivationMap (maintained by the POA). If your servant objects maintain any system resources (like JDBC connections/ file handle etc) you may want to provide some cleanup() methods in your IDL interfaces and call them before calling for deactivation.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Comments and alternative answers

Comment on this FAQ entry

There are currently no comments

Ask A Question



 
Related Links

CORBA FAQ

CORBA Forum

Wish List
Features
About jGuru
Contact Us

 


Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers