Package com.adaptris.xa.jms
Class ProducerXASessionFactoryImpl
- java.lang.Object
-
- com.adaptris.xa.jms.ProducerXASessionFactoryImpl
-
- All Implemented Interfaces:
ComponentLifecycle,ComponentLifecycleExtension,ProducerSessionFactory,ProducerXASessionFactory
- Direct Known Subclasses:
DefaultProducerXASessionFactory
public abstract class ProducerXASessionFactoryImpl extends java.lang.Object implements ProducerXASessionFactory
Partial implementation ofProducerSessionFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogprotected ProducerXASessionsession
-
Constructor Summary
Constructors Constructor Description ProducerXASessionFactoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected static voidcloseQuietly(ProducerXASession s)ProducerSessioncreateProducerSession(JmsProducerImpl producer, AdaptrisMessage msg)protected ProducerXASessioncreateProducerXASession(XAJmsProducerImpl producer)voidinit()voidprepare()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
start, stop
-
Methods inherited from interface com.adaptris.xa.jms.ProducerXASessionFactory
createProducerXASession
-
-
-
-
Field Detail
-
log
protected transient org.slf4j.Logger log
-
session
protected transient ProducerXASession session
-
-
Method Detail
-
init
public void init() throws CoreException- Specified by:
initin interfaceComponentLifecycle- Throws:
CoreException
-
close
public void close()
- Specified by:
closein interfaceComponentLifecycle
-
prepare
public void prepare() throws CoreException- Specified by:
preparein interfaceComponentLifecycleExtension- Throws:
CoreException
-
createProducerSession
public ProducerSession createProducerSession(JmsProducerImpl producer, AdaptrisMessage msg) throws javax.jms.JMSException
- Specified by:
createProducerSessionin interfaceProducerSessionFactory- Throws:
javax.jms.JMSException
-
createProducerXASession
protected ProducerXASession createProducerXASession(XAJmsProducerImpl producer) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
closeQuietly
protected static void closeQuietly(ProducerXASession s)
-
-