JmsConnector is a JMS 1.0.2b compliant connector that can be used
by a Mule endpoint. The connector supports all JMS functionality including topics
and queues, durable subscribers, acknowledgement modes and local transactions.
preProcessMessage(javax.jms.Message message, Session session) This method may be overridden in order to apply pre-processing to the message
as soon as it arrives.
Gets the value of honorQosHeaders property.
true if JmsMessageDispatcher should honor incomingmessage's QoS headers; otherwise false Default is false, meaning thatconnector settings will override message headers.
public javax.jms.Message preProcessMessage(javax.jms.Message message, Session session) throws Exception(Code)
This method may be overridden in order to apply pre-processing to the message
as soon as it arrives.
Parameters: message - - the incoming message Parameters: session - - the JMS session the preprocessed message
setAcknowledgementMode
public void setAcknowledgementMode(int acknowledgementMode)(Code)
Parameters: acknowledgementMode - The acknowledgementMode to set.
setCacheJmsSessions
public void setCacheJmsSessions(boolean cacheJmsSessions)(Code)
public void setEagerConsumer(boolean eagerConsumer)(Code)
A value of
true will create a consumer on
connect, in contrast to lazy instantiation in the poll loop.
This setting very much depends on the JMS vendor.
Affects transactional receivers, typical symptoms are:
consumer thread hanging forever, though a message is
available
failure to consume the first message (the rest
are fine)