Package org.apache.ofbiz.service.jms
Class JmsTopicListener
- java.lang.Object
-
- org.apache.ofbiz.service.jms.AbstractJmsListener
-
- org.apache.ofbiz.service.jms.JmsTopicListener
-
- All Implemented Interfaces:
javax.jms.ExceptionListener
,javax.jms.MessageListener
,GenericMessageListener
public class JmsTopicListener extends AbstractJmsListener
JmsTopicListener - Topic (Pub/Sub) Message Listener.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Fields inherited from class org.apache.ofbiz.service.jms.AbstractJmsListener
dispatcher, isConnected
-
-
Constructor Summary
Constructors Constructor Description JmsTopicListener(Delegator delegator, java.lang.String jndiServer, java.lang.String jndiName, java.lang.String topicName, java.lang.String userName, java.lang.String password)
Creates a new JmsTopicListener - Should only be called by the JmsListenerFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Shutdown the listener and all connection(s).void
load()
Start the listener and all connection(s).-
Methods inherited from class org.apache.ofbiz.service.jms.AbstractJmsListener
isConnected, onException, onMessage, refresh, runService, setConnected
-
-
-
-
Constructor Detail
-
JmsTopicListener
public JmsTopicListener(Delegator delegator, java.lang.String jndiServer, java.lang.String jndiName, java.lang.String topicName, java.lang.String userName, java.lang.String password)
Creates a new JmsTopicListener - Should only be called by the JmsListenerFactory.
-
-
Method Detail
-
close
public void close() throws GenericServiceException
Description copied from interface:GenericMessageListener
Shutdown the listener and all connection(s).- Throws:
GenericServiceException
-
load
public void load() throws GenericServiceException
Description copied from interface:GenericMessageListener
Start the listener and all connection(s).- Throws:
GenericServiceException
-
-