public final class Receiver
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
static Receiver |
createReceiver(javax.jms.ConnectionFactory factory,
javax.jms.Destination receiveQueue,
java.lang.String principal,
java.lang.String credentials,
boolean useResMsgIdAsCorrelId,
java.lang.String jmsSelector)
Create a receiver to process responses.
|
void |
deactivate() |
void |
run() |
public static Receiver createReceiver(javax.jms.ConnectionFactory factory, javax.jms.Destination receiveQueue, java.lang.String principal, java.lang.String credentials, boolean useResMsgIdAsCorrelId, java.lang.String jmsSelector) throws javax.jms.JMSException
factory
- connection factory to usereceiveQueue
- name of the receiving queueprincipal
- user name to use for connecting to the queuecredentials
- credentials to use for connecting to the queueuseResMsgIdAsCorrelId
- true
if should use JMSMessageId,
false
if should use JMSCorrelationIdjmsSelector
- JMS selectorjavax.jms.JMSException
- when creating the receiver failspublic void run()
run
in interface java.lang.Runnable
public void deactivate()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.