On Thursday 07 August 2008 14:37:37 [EMAIL PROTECTED] 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
[EMAIL PROTECTED] Robert-Koch-Strasse 26-28
+49 251 83-31960 48151 Münster, Germany
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]