Package org.apache.ofbiz.service.jms
Class JmsQueueListener
- java.lang.Object
-
- org.apache.ofbiz.service.jms.AbstractJmsListener
-
- org.apache.ofbiz.service.jms.JmsQueueListener
-
- All Implemented Interfaces:
ExceptionListener
,MessageListener
,GenericMessageListener
public class JmsQueueListener extends AbstractJmsListener
JmsQueueListener - Queue (P2P) 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 JmsQueueListener(Delegator delegator, java.lang.String jndiServer, java.lang.String jndiName, java.lang.String queueName, java.lang.String userName, java.lang.String password)
Creates a new JmsQueueListener - 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
-
JmsQueueListener
public JmsQueueListener(Delegator delegator, java.lang.String jndiServer, java.lang.String jndiName, java.lang.String queueName, java.lang.String userName, java.lang.String password)
Creates a new JmsQueueListener - 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
-
-