public class JMSConduit extends AbstractConduit implements javax.jms.MessageListener
target
incomingObserver
Constructor and Description |
---|
JMSConduit(EndpointReferenceType target,
JMSConfiguration jmsConfig,
Bus b) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the conduit.
|
void |
close(Message msg)
Close the connections associated with the message
|
protected void |
finalize() |
JMSConfiguration |
getJmsConfig() |
protected Logger |
getLogger() |
protected static boolean |
isSetReplyTo(Message message) |
void |
onMessage(javax.jms.Message jmsMessage)
When a message is received on the reply destination the correlation map is searched for the
correlationId.
|
void |
prepare(Message message)
Prepare the message to be sent.
|
protected void |
processReplyMessage(Exchange exchange,
javax.jms.Message jmsMessage)
Process the reply message
|
void |
sendExchange(Exchange exchange,
Object request)
Send the JMS message and if the MEP is not oneway receive the response.
|
void |
setJmsConfig(JMSConfiguration jmsConfig) |
getTarget, toString
activate, deactivate, getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessageObserver, setMessageObserver
public JMSConduit(EndpointReferenceType target, JMSConfiguration jmsConfig, Bus b)
public void prepare(Message message) throws IOException
prepare
in interface Conduit
message
- the message to be sent.IOException
public void close(Message msg) throws IOException
Conduit
close
in interface Conduit
close
in class AbstractConduit
msg
- for which content should be closed.IOException
public void sendExchange(Exchange exchange, Object request)
exchange
- the Exchange containing the outgoing messagerequest
- the payload of the outgoing JMS messagepublic void onMessage(javax.jms.Message jmsMessage)
onMessage
in interface javax.jms.MessageListener
protected void processReplyMessage(Exchange exchange, javax.jms.Message jmsMessage) throws javax.jms.JMSException
javax.jms.JMSException
public void close()
AbstractConduit
close
in interface Conduit
close
in class AbstractConduit
protected Logger getLogger()
getLogger
in class AbstractObservable
public JMSConfiguration getJmsConfig()
public void setJmsConfig(JMSConfiguration jmsConfig)
protected static boolean isSetReplyTo(Message message)
Apache CXF