@Singleton public class ListenerResource extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ListenerResource.ListenerConfig |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
ListenerResource() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public void setConnectionFactory(ConnectionFactory factory)
factory - public void setDestination(Destination destination)
destination - public void setListener(ListenerResource.ListenerConfig config)
public void setListenerMax(int listenerMax)
@PostConstruct public void init() throws ConfigException, JMSException
ConfigExceptionJMSException@PreDestroy public void stop() throws JMSException
JMSException