For those who are not familiar with WS-Notification implementation used in SM
I did a fragment of org.apache.servicemix.wsn.jbi.JbiSubscription source
code:

 @Override
    protected void doNotify(final Element content) {
        try {
            DeliveryChannel channel = getContext().getDeliveryChannel();
            MessageExchangeFactory factory =
channel.createExchangeFactory(endpoint);
            InOnly inonly = factory.createInOnlyExchange();
            NormalizedMessage msg = inonly.createMessage();
            inonly.setInMessage(msg);
            msg.setContent(new DOMSource(content));
            getLifeCycle().sendConsumerExchange(inonly, processor);
        } catch (JBIException e) {
            log.warn("Could not deliver notification", e);
        }
    }


This part is used to sent notification to a consumer (variable 'endpoint' -
the resolved consumer). Is it possible to use HTTP binding in the middle of
such a communication ? ...
-- 
View this message in context: 
http://www.nabble.com/WSN2005---SOAP---a-full-featured-external-WSN-client-tf4810818s12049.html#a13766938
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to