[omniNotify] Re: [omniORB] Deleting a StructuredPushConsumer

Duncan Grisby duncan at grisby.org
Tue Jun 15 22:54:00 BST 2004


On Tuesday 15 June, Jon Dyte wrote:

> you are activating the eventObserver object via _this which will put
> it in the RootPOA. When you delete event observer the ORB is
> complaining that there is still a reference in the active object
> map.

That is correct.

> I think you need a servant activator, but you still manually do the 
> activation, but use the etherealise method to safely destroy the 
> event_observer.

While it will work to do that, it's a big waste of effort. If you
don't have a servant activator, a call to deactivate_object eventually
ends up with a remove_ref on the servant. There's no need to create a
servant activator to do the same thing.

It is fine to activate your consumer in the Root POA. Just get rid of
it with deactivate_object rather than by deleting it directly.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omninotify-list mailing list