de.fzj.unicore.wsrflite.xmlbeans.wsn.provider
Class WSNProvider

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xmlbeans.wsn.provider.WSNProvider
All Implemented Interfaces:
IMessagingChannel, IMessagingProvider

public class WSNProvider
extends Object
implements IMessagingProvider, IMessagingChannel

Provider to send messages via WS-N Notify()

Author:
schuller

Constructor Summary
WSNProvider()
           
 
Method Summary
 void configure()
          configure WS-N messaging
 IMessagingChannel getChannel()
           
protected  BaseWSRFClient getClient(String url, org.w3.x2005.x08.addressing.EndpointReferenceType epr)
          return an appropriate client.
static IMessagingChannel getDeadLetterChannel()
          a channel for storing messages whose delivery failed for some reason.
 void publish(Message msg)
          send the message
 void send(Message m)
          send a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSNProvider

public WSNProvider()
Method Detail

publish

public void publish(Message msg)
             throws MessagingException
send the message

Specified by:
publish in interface IMessagingChannel
Throws:
MessagingException

getChannel

public IMessagingChannel getChannel()
Specified by:
getChannel in interface IMessagingProvider

getDeadLetterChannel

public static IMessagingChannel getDeadLetterChannel()
a channel for storing messages whose delivery failed for some reason.
This implementation simply drops the message

Returns:

configure

public void configure()
configure WS-N messaging


send

public void send(Message m)
send a message. Returns immediately, because the message is placed into a queue

Parameters:
m -

getClient

protected BaseWSRFClient getClient(String url,
                                   org.w3.x2005.x08.addressing.EndpointReferenceType epr)
                            throws Exception
return an appropriate client. Override if you need something more than BaseWSRFClient

Parameters:
url -
epr -
Throws:
Exception


Copyright © 2010. All Rights Reserved.