com.caucho.jms.resource
Class ListenerResource

java.lang.Object
  extended by com.caucho.jms.resource.ListenerResource

@Singleton
public class ListenerResource
extends java.lang.Object

Configures application listeners, avoiding JCA.


Nested Class Summary
static class ListenerResource.ListenerConfig
           
 
Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
ListenerResource()
           
 
Method Summary
 void init()
           
 void setConnectionFactory(ConnectionFactory factory)
          Sets the JMS connection factory.
 void setDestination(Destination destination)
          Sets the JMS Destination (Queue or Topic)
 void setListener(ListenerResource.ListenerConfig config)
          Sets the listener constructor.
 void setListenerMax(int listenerMax)
          Sets the listener-max
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static java.util.logging.Logger log
Constructor Detail

ListenerResource

public ListenerResource()
Method Detail

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