@ComponentProfile(summary="Send messages to MSMQ using ActiveX", tag="producer,msmq", recommended=MsmqConnection.class) public class StandardMsmqProducer extends MsmqProducerBase
Request reply is not supported, an UnsupportedOperationException is thrown if an attempt is made to use request()
The AdaptrisConnection associated with MsmqProducer should be a MsmqConnection
. The resulting MSMQ Message body is
controllable through use of MsmqMessageFormat
; by default it uses StringMessageFormat
means that the body matches
the Variant type VT_BSTR. Depending on the platform this may cause the resulting VT_BSTR to have a default encoding of UTF-16; if
this is the case then consider using ByteArrayMessageFormat
instead if the target application cannot handle this.
The string returned by the configured ProduceDestination should be a MSMQ Queue name in the form
DIRECT=OS:.\private$\zzlc
or similar.
Possible formats for the Destination are (see the MSMQQueueInfo.FormatName documentation)
Note that this MSMQ implementation only supports MSMQ 3.0 and higher; This means Windows XP Professional, Windows Server 2003 and later operating systems.
Queue
In the adapter configuration file this class is aliased as standard-msmq-producer which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: ENTERPRISE
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
StandardMsmqProducer() |
StandardMsmqProducer(MsmqMessageFormat format) |
StandardMsmqProducer(ProduceDestination d) |
StandardMsmqProducer(ProduceDestination d,
MsmqMessageFormat format) |
Modifier and Type | Method and Description |
---|---|
MsmqMessageFormat |
getMessageFormatter() |
void |
setMessageFormatter(MsmqMessageFormat msmqFormatter) |
protected void |
setMsmqMessageBody(AdaptrisMessage aMsg,
Message msmqMsg) |
addPropertyMapper, close, getPropertyMappers, getShareMode, getTransactionMode, init, isEnabled, prepare, produce, registerMsmqMessageFactory, registerQueueFactory, retrieveMsmqMessageFactory, retrieveQueueFactory, setPropertyMappers, setShareMode, setTransactionMode, start, stop
produce, request, request, request, request
getDestination, setDestination
createName, createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactory
getUniqueId
createName, createQualifier, isTrackingEndpoint
public StandardMsmqProducer()
public StandardMsmqProducer(ProduceDestination d)
public StandardMsmqProducer(ProduceDestination d, MsmqMessageFormat format)
public StandardMsmqProducer(MsmqMessageFormat format)
protected void setMsmqMessageBody(AdaptrisMessage aMsg, Message msmqMsg) throws MSMQException
setMsmqMessageBody
in class MsmqProducerBase
MSMQException
public MsmqMessageFormat getMessageFormatter()
public void setMessageFormatter(MsmqMessageFormat msmqFormatter)
Copyright Adaptris