« Return to Thread: Lookup other capabilites

Lookup other capabilites

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

Reply to Author | View in Thread

Hi,

I need a reference to the NotificationProducer instance in my Resource.
Therefore I wrote this method:

private NotificationProducer getNotificationProducer() throws SoapFault {
                NotificationProducer wsn = (NotificationProducer)
getResource().getCapability(WsnConstants.PRODUCER_URI);
return wsn;
}

But no matter when I call it, it is always to early: In the logs I can see
that the NotificationProducer is initialized afterwards. I tried "initialize"
and "initializeCompleted" and I even tried the actual method which is called
on external soap requests.

So my question is:
(1) Is it only a problem of my "InlineEnvironment" JUnit loader?
(2) Is there a method that should be calles after all Resources have been
initialized (I mean those that have this router-entries defined)?


Thanks,

Jan

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


signature.asc (196 bytes) Download Attachment

 « Return to Thread: Lookup other capabilites