|
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
There are currently no comments
|
|
 |
|