Class XAJmsProducer
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisMessageProducer,AdaptrisMessageSender,AdaptrisMessageWorker,ComponentLifecycle,ComponentLifecycleExtension,JmsActorConfig,LicensedComponent,MessageEventGenerator
- Direct Known Subclasses:
XAJmsProducerAsync
This differs from the standard PtpProducer and PasProducer in that it supports a
destination that is specified in RFC6167 style. For instance jms:queue:myQueueName will
produce to a queue called myQueueName and jms:topic:myTopicName to a topic called
myTopicName
While RFC6167 defines the ability to use jndi to lookup the (as part of the 'jndi' variant section); this is not supported. The standard deliveryMode, timeToLive, priority, replyToName properties are supported. If not specified, then they will be inherited from the producers configuration. For instance you could have the following destinations:
- jms:queue:MyQueueName
- jms:topic:MyTopicName
- jms:queue:MyQueueName?replyToName=StaticReplyTo&priority=1&timeToLive=1234
- jms:topic:MyTopicName?replyToName=StaticReplyTo
As the RFC6167 string can specify priority, timeToLive and deliveryMode; this producer defaults
JmsProducerImpl.getPerMessageProperties() to be true.
In the adapter configuration file this class is aliased as xa-jms-producer which is the preferred alternative to the fully qualified classname when building your configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adaptris.core.jms.JmsProducer
JmsProducer.MyJmsDestination -
Field Summary
Fields inherited from class com.adaptris.xa.jms.XAJmsProducerImpl
transactionManagerFields inherited from class com.adaptris.core.AdaptrisMessageWorkerImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()protected voidproduce(AdaptrisMessage msg, JmsDestination jmsDest) voidrollback()protected com.adaptris.xa.jms.XAVendorImplementationMethods inherited from class com.adaptris.xa.jms.XAJmsProducerImpl
configuredAcknowledgeMode, currentSession, getTransactionManager, getXaResourceName, isEnabled, prepare, producerSession, setTransactionManager, setupSession, setXaResourceNameMethods inherited from class com.adaptris.core.jms.JmsProducer
buildDestination, createReplyTo, endpoint, getEndpoint, perMessageProperties, produce, produce, request, request, setEndpoint, waitForReply, withEndpointMethods inherited from class com.adaptris.core.jms.JmsProducerImpl
acknowledge, calculateDeliveryMode, calculatePriority, calculateTimeToLive, captureOutgoingMessageDetails, captureOutgoingMessageDetails, close, configuredCorrelationIdSource, configuredMessageListener, configuredMessageTranslator, currentLogger, defaultTimeout, getAcknowledgeMode, getCaptureOutgoingMessageDetails, getCorrelationIdSource, getDeliveryMode, getMessageTranslator, getPerMessageProperties, getPriority, getSessionFactory, getTtl, init, isManagedTransaction, logLinkedException, messagePriority, request, retrieveObjectDestination, rollbackTimeout, setAcknowledgeMode, setCaptureOutgoingMessageDetails, setCorrelationIdSource, setDeliveryMode, setMessageTranslator, setPerMessageProperties, setPriority, setSessionFactory, setTtl, start, stop, timeToLive, transactedSession, translateMethods inherited from class com.adaptris.core.RequestReplyProducerBase
copyReplyContents, getIgnoreReplyMetadata, mergeReply, setIgnoreReplyMetadataMethods inherited from class com.adaptris.core.AdaptrisMessageProducerImp
createNameMethods inherited from class com.adaptris.core.AdaptrisMessageWorkerImp
createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueIdMethods inherited from interface com.adaptris.core.AdaptrisMessageWorker
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactoryMethods inherited from interface com.adaptris.core.jms.JmsActorConfig
configuredCorrelationIdSource, configuredMessageListener, configuredMessageTranslator, currentLogger, isManagedTransaction, rollbackTimeoutMethods inherited from interface com.adaptris.core.MessageEventGenerator
createQualifier, isTrackingEndpoint
-
Constructor Details
-
XAJmsProducer
public XAJmsProducer()
-
-
Method Details
-
commit
public void commit() throws javax.jms.JMSException- Overrides:
commitin classJmsProducerImpl- Throws:
javax.jms.JMSException
-
rollback
public void rollback()- Overrides:
rollbackin classJmsProducerImpl
-
produce
protected void produce(AdaptrisMessage msg, JmsDestination jmsDest) throws javax.jms.JMSException, CoreException - Overrides:
producein classJmsProducer- Throws:
javax.jms.JMSExceptionCoreException
-
vendorImplementation
protected com.adaptris.xa.jms.XAVendorImplementation vendorImplementation()- Overrides:
vendorImplementationin classJmsProducer
-