Hello,

I realize some tests with the servicemix-wsn2005 component ; this component
is installed on my Servicemix 3.1 version. I can use WS-Notification from
outside JBI bus using BCs as explained here :
http://incubator.apache.org/servicemix/servicemix-wsn2005.html.

Now I try to send a notification from a SE that is a POJO (deployed on the
servicemix-jsr181 component) using this code :

try {
  NotificationBroker wsnBroker = new NotificationBroker(context);
  wsnBroker.notify("myTopic", parse("<hello>Bonjour !</hello>"));
} catch (Exception e) {
  e.printStackTrace();
}

In this code context is a ComponentContext and is well initialised.

But I get an exception telling that the NotificationBroker is unvailable !

Here the exception :
org.apache.servicemix.jbi.NoServiceAvailableException: Cannot find an
instance o
f the service: {http://servicemix.org/wsnotification}NotificationBroker
        at
org.apache.servicemix.jbi.resolver.ServiceNameEndpointResolver.create
ServiceUnavailableException(ServiceNameEndpointResolver.java:61)
        at
org.apache.servicemix.jbi.resolver.EndpointResolverSupport.resolveEnd
point(EndpointResolverSupport.java:40)
        at
org.apache.servicemix.client.ServiceMixClientFacade.configureEndpoint
(ServiceMixClientFacade.java:332)
        at
org.apache.servicemix.client.ServiceMixClientFacade.createInOnlyExcha
nge(ServiceMixClientFacade.java:92)
        at
org.apache.servicemix.client.ServiceMixClientFacade.sendSync(ServiceM
ixClientFacade.java:239)
        at
org.apache.servicemix.wsn.client.AbstractWSAClient.send(AbstractWSACl
ient.java:120)
        at
org.apache.servicemix.wsn.client.NotificationBroker.notify(Notificati
onBroker.java:100)


Perhaps I've missed a step ?

I appretiate any help ! Thank you.

Bertrand Goetzmann.
http://www.odelia-technologies.com/
-- 
View this message in context: 
http://www.nabble.com/Cannot-find-an-instance-of-NotificationBroker-%21-tf4010894s12049.html#a11390373
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to