org.apache.servicemix.wsn.jms
Class JmsPublisher

java.lang.Object
  extended by org.apache.servicemix.wsn.AbstractEndpoint
      extended by org.apache.servicemix.wsn.AbstractPublisher
          extended by org.apache.servicemix.wsn.jms.JmsPublisher
All Implemented Interfaces:
org.apache.activemq.advisory.ConsumerListener, PublisherRegistrationManager
Direct Known Subclasses:
JbiPublisher

public abstract class JmsPublisher
extends AbstractPublisher
implements org.apache.activemq.advisory.ConsumerListener


Field Summary
 
Fields inherited from class org.apache.servicemix.wsn.AbstractPublisher
demand, publisherReference, topic
 
Fields inherited from class org.apache.servicemix.wsn.AbstractEndpoint
address, endpoint, manager, name
 
Constructor Summary
JmsPublisher(String name)
           
 
Method Summary
protected  void destroy()
           
protected abstract  void destroySubscription(Object sub)
           
 Connection getConnection()
           
 void notify(NotificationMessageHolderType messageHolder)
           
 void onConsumerEvent(org.apache.activemq.advisory.ConsumerEvent event)
           
 void setConnection(Connection connection)
           
protected  void start()
           
protected abstract  Object startSubscription()
           
protected  void validatePublisher(RegisterPublisher registerPublisherRequest)
           
 
Methods inherited from class org.apache.servicemix.wsn.AbstractPublisher
create, createAddress, destroyRegistration
 
Methods inherited from class org.apache.servicemix.wsn.AbstractEndpoint
createEndpointReference, getAddress, getManager, getName, register, setAddress, setManager, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsPublisher

public JmsPublisher(String name)
Method Detail

getConnection

public Connection getConnection()

setConnection

public void setConnection(Connection connection)

notify

public void notify(NotificationMessageHolderType messageHolder)
Specified by:
notify in class AbstractPublisher

validatePublisher

protected void validatePublisher(RegisterPublisher registerPublisherRequest)
                          throws InvalidTopicExpressionFault,
                                 PublisherRegistrationFailedFault,
                                 PublisherRegistrationRejectedFault,
                                 ResourceUnknownFault,
                                 TopicNotSupportedFault
Overrides:
validatePublisher in class AbstractPublisher
Throws:
InvalidTopicExpressionFault
PublisherRegistrationFailedFault
PublisherRegistrationRejectedFault
ResourceUnknownFault
TopicNotSupportedFault

start

protected void start()
              throws PublisherRegistrationFailedFault
Specified by:
start in class AbstractPublisher
Throws:
PublisherRegistrationFailedFault

destroy

protected void destroy()
                throws ResourceNotDestroyedFault
Overrides:
destroy in class AbstractPublisher
Throws:
ResourceNotDestroyedFault

onConsumerEvent

public void onConsumerEvent(org.apache.activemq.advisory.ConsumerEvent event)
Specified by:
onConsumerEvent in interface org.apache.activemq.advisory.ConsumerListener

destroySubscription

protected abstract void destroySubscription(Object sub)

startSubscription

protected abstract Object startSubscription()


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.