Package org.apache.cxf.wsn.jms
Class JmsPublisher
- java.lang.Object
-
- org.apache.cxf.wsn.AbstractEndpoint
-
- org.apache.cxf.wsn.AbstractPublisher
-
- org.apache.cxf.wsn.jms.JmsPublisher
-
- All Implemented Interfaces:
org.apache.activemq.advisory.ConsumerListener,EndpointMBean,PublisherRegistrationManager
- Direct Known Subclasses:
JaxwsPublisher
public abstract class JmsPublisher extends AbstractPublisher implements org.apache.activemq.advisory.ConsumerListener
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.wsn.AbstractPublisher
demand, publisherReference, topic
-
Fields inherited from class org.apache.cxf.wsn.AbstractEndpoint
address, endpoint, endpointEpr, manager, name
-
-
Constructor Summary
Constructors Constructor Description JmsPublisher(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddestroy()javax.jms.ConnectiongetConnection()voidnotify(NotificationMessageHolderType messageHolder)voidonConsumerEvent(org.apache.activemq.advisory.ConsumerEvent event)voidsetConnection(javax.jms.Connection connection)protected voidstart()protected abstract ObjectstartSubscription(TopicExpressionType topic)protected abstract voidstopSubscription(Object sub)protected voidvalidatePublisher(RegisterPublisher registerPublisherRequest)-
Methods inherited from class org.apache.cxf.wsn.AbstractPublisher
create, destroyRegistration, getPublisherReference
-
Methods inherited from class org.apache.cxf.wsn.AbstractEndpoint
getAddress, getEpr, getManager, getMBeanName, getName, getWSDLLocation, register, setAddress, setManager, unregister
-
-
-
-
Constructor Detail
-
JmsPublisher
public JmsPublisher(String name)
-
-
Method Detail
-
getConnection
public javax.jms.Connection getConnection()
-
setConnection
public void setConnection(javax.jms.Connection connection)
-
notify
public void notify(NotificationMessageHolderType messageHolder)
- Specified by:
notifyin classAbstractPublisher
-
validatePublisher
protected void validatePublisher(RegisterPublisher registerPublisherRequest) throws InvalidTopicExpressionFault, PublisherRegistrationFailedFault, PublisherRegistrationRejectedFault, ResourceUnknownFault, TopicNotSupportedFault
-
start
protected void start() throws PublisherRegistrationFailedFault- Specified by:
startin classAbstractPublisher- Throws:
PublisherRegistrationFailedFault
-
destroy
protected void destroy() throws ResourceNotDestroyedFault- Overrides:
destroyin classAbstractPublisher- Throws:
ResourceNotDestroyedFault
-
onConsumerEvent
public void onConsumerEvent(org.apache.activemq.advisory.ConsumerEvent event)
- Specified by:
onConsumerEventin interfaceorg.apache.activemq.advisory.ConsumerListener
-
startSubscription
protected abstract Object startSubscription(TopicExpressionType topic)
-
stopSubscription
protected abstract void stopSubscription(Object sub)
-
-