public interface QueueConnector
extends javax.jms.ExceptionListener
Modifier and Type | Field and Description |
---|---|
static int |
QC_QUEUE |
static int |
QC_STREAM |
static int |
QC_TOPIC |
static int |
QC_XQ |
static int |
XA_CLIENT |
static int |
XA_COMMIT |
Modifier and Type | Method and Description |
---|---|
void |
browse(java.lang.Object out)
browses the JMS messages from the JMS queue and puts them
to the output, either a queue, a topic, a stream or an XQueue.
|
void |
close()
closes all opened resources
|
javax.jms.Message |
createMessage(int type)
returns a JMS Message with the initialized JMSSession
|
javax.jms.Queue |
createQueue(java.lang.String name)
returns the queue created for the given name
|
javax.jms.Queue |
createTemporaryQueue()
returns the temporary queue created
|
void |
get(java.lang.Object out)
continuously gets the JMS messages from the JMS queue and puts them
to the output, either a queue, a topic, a stream or an XQueue.
|
java.lang.String |
getOperation()
returns the string of the operation
|
javax.jms.QueueBrowser |
getQueueBrowser()
returns an on-demand browser in a separate session
|
javax.jms.QueueReceiver |
getQueueReceiver()
returns an on-demand receiver in a separate session
|
javax.jms.QueueSender |
getQueueSender()
returns an on-demand sender in a separate session
|
void |
onException(javax.jms.JMSException e)
catches JMSException of Connection asynchronously
|
void |
put(java.io.InputStream in)
continuously gets the JMS messages from the InputStream and puts them
to the JMS queue.
|
void |
put(XQueue xq)
continuously gets the JMS messages from the XQueue and puts them
to the JMS queue.
|
void |
qClose()
closes the queue
|
void |
qOpen()
opens the queue for the operation
|
int |
qReopen()
reopens the queue for the operation
|
void |
query(XQueue xq)
continuously gets the JMS messages from the XQueue and extracts
message selector from messages.
|
java.lang.String |
reconnect()
reconnects to the JMS server for the operation or returns error text
|
void |
reply(XQueue xq)
continuously gets the JMS messages from the XQueue and sends them
to their JMSReplyQ as the responses.
|
void |
request(XQueue xq,
java.lang.String rq)
continuously gets the JMS messages from the XQueue and sends them
to the JMS queue as requests and waits for responses from given queue.
|
static final int QC_QUEUE
static final int QC_TOPIC
static final int QC_STREAM
static final int QC_XQ
static final int XA_CLIENT
static final int XA_COMMIT
void browse(java.lang.Object out) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
void query(XQueue xq) throws TimeoutException, javax.jms.JMSException
TimeoutException
javax.jms.JMSException
void get(java.lang.Object out) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
void request(XQueue xq, java.lang.String rq) throws TimeoutException, javax.jms.JMSException
TimeoutException
javax.jms.JMSException
void reply(XQueue xq) throws TimeoutException, javax.jms.JMSException
TimeoutException
javax.jms.JMSException
void put(java.io.InputStream in) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
void put(XQueue xq) throws TimeoutException, javax.jms.JMSException
TimeoutException
javax.jms.JMSException
javax.jms.Message createMessage(int type) throws javax.jms.JMSException
javax.jms.JMSException
javax.jms.Queue createQueue(java.lang.String name) throws javax.jms.JMSException
javax.jms.JMSException
javax.jms.Queue createTemporaryQueue() throws javax.jms.JMSException
javax.jms.JMSException
javax.jms.QueueBrowser getQueueBrowser()
javax.jms.QueueReceiver getQueueReceiver()
javax.jms.QueueSender getQueueSender()
java.lang.String getOperation()
void qOpen() throws javax.jms.JMSException
javax.jms.JMSException
void qClose() throws javax.jms.JMSException
javax.jms.JMSException
int qReopen()
java.lang.String reconnect()
void onException(javax.jms.JMSException e)
onException
in interface javax.jms.ExceptionListener
void close()