Package com.adaptris.xa.jms
Interface ProducerXASessionFactory
- All Superinterfaces:
ComponentLifecycle,ComponentLifecycleExtension,ProducerSessionFactory
- All Known Implementing Classes:
DefaultProducerXASessionFactory,ProducerXASessionFactoryImpl
public interface ProducerXASessionFactory
extends ComponentLifecycle, ComponentLifecycleExtension, ProducerSessionFactory
Handles the creation of a JMS XASession and MessageProducer for
JmsProducerImpl instances.-
Method Summary
Modifier and TypeMethodDescriptionCreate or reuse an existing session.Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stopMethods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepareMethods inherited from interface com.adaptris.core.jms.ProducerSessionFactory
createProducerSession
-
Method Details
-
createProducerXASession
ProducerXASession createProducerXASession(XAJmsProducerImpl conn, AdaptrisMessage msg) throws javax.jms.JMSException Create or reuse an existing session.- Parameters:
conn- theJmsProducerImplinstancemsg- the message that the producer is currently handling.- Returns:
- a
ProducerXASession - Throws:
javax.jms.JMSException- if there was a problem creating the session.
-