public abstract class ProducerSessionFactoryImpl extends java.lang.Object implements ProducerSessionFactory
ProducerSessionFactory
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
protected ProducerSession |
session |
Constructor and Description |
---|
ProducerSessionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the component.
|
protected static void |
closeQuietly(ProducerSession s) |
protected ProducerSession |
createProducerSession(JmsProducerImpl producer) |
void |
init()
Initialises the component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createProducerSession
start, stop
protected transient org.slf4j.Logger log
protected transient ProducerSession session
public void init() throws CoreException
ComponentLifecycle
Component initialisation includes config verification, creation of connections etc.
init
in interface ComponentLifecycle
CoreException
- wrapping any underlying Exception
spublic void close()
ComponentLifecycle
A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException
may
cause unintended consequences
close
in interface ComponentLifecycle
protected ProducerSession createProducerSession(JmsProducerImpl producer) throws javax.jms.JMSException
javax.jms.JMSException
protected static void closeQuietly(ProducerSession s)