com.caucho.jms.resource
Class ListenerResource
java.lang.Object
com.caucho.jms.resource.ListenerResource
@Singleton
public class ListenerResource
- extends java.lang.Object
Configures application listeners, avoiding JCA.
Field Summary |
protected static java.util.logging.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static java.util.logging.Logger log
ListenerResource
public ListenerResource()
setConnectionFactory
public void setConnectionFactory(ConnectionFactory factory)
- Sets the JMS connection factory.
- Parameters:
factory
-
setDestination
public void setDestination(Destination destination)
- Sets the JMS Destination (Queue or Topic)
- Parameters:
destination
-
setListener
public void setListener(ListenerResource.ListenerConfig config)
- Sets the listener constructor.
setListenerMax
public void setListenerMax(int listenerMax)
- Sets the listener-max
init
@PostConstruct
public void init()
throws ConfigException,
JMSException
- Throws:
ConfigException
JMSException
stop
@PreDestroy
public void stop()
throws JMSException
- Throws:
JMSException