« Return to Thread: Listening for resource shutdown?

Re: Listening for resource shutdown?

by Jan Torben Heuer-4 :: Rate this Message:

Reply to Author | View in Thread

On Thursday 07 August 2008 14:37:37 Chris.Twiner@... wrote:

Hallo,

> ResourceManagerListener and the ResourceManager can help here.  All
> resources removals will trigger the callback functions so you have to
> filter yourself.

Because I got notification for all but my self-instantiated resources I took a
look at the SimpleResource. I found this code in the shutdown method:

        //
        // remove resource visibility
        //
        // sanity check: make sure the resource was put in manager. this may
        // not be the case for internal resources
        //
        if (manager.getResource(_epr) != null)
            manager.removeResource(_epr);

the if-clause didn't match in my case so, what do I have to do to put my
self-instantiated resource into the manager? I do:

/* create new resource */
newPublicationEndpoint =
manager.createResource(publisherRegistrationManagerEndpoint);


Jan
--
                                Institute for Geoinformatics
jan.heuer@... Robert-Koch-Strasse 26-28
+49 251 83-31960 48151 Münster, Germany

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@...
For additional commands, e-mail: muse-user-help@...

 « Return to Thread: Listening for resource shutdown?