public class PerMessageProducerSessionFactory extends ProducerSessionFactoryImpl
ProducerSessionFactory
that creates a new session every time is produced.In the adapter configuration file this class is aliased as jms-per-message-producer-session which is the preferred alternative to the fully qualified classname when building your configuration.
log, session
Constructor and Description |
---|
PerMessageProducerSessionFactory() |
Modifier and Type | Method and Description |
---|---|
ProducerSession |
createProducerSession(JmsProducerImpl producer,
AdaptrisMessage msg)
Create or reuse an existing session.
|
close, closeQuietly, createProducerSession, init, start, stop
public ProducerSession createProducerSession(JmsProducerImpl producer, AdaptrisMessage msg) throws javax.jms.JMSException
ProducerSessionFactory
producer
- the JmsProducerImpl
instancemsg
- the message that the producer is currently handling.ProducerSession
javax.jms.JMSException
- if there was a problem creating the session.