public interface TopicConnector
extends javax.jms.ExceptionListener
Modifier and Type | Field and Description |
---|---|
static int |
TC_QUEUE |
static int |
TC_STREAM |
static int |
TC_TOPIC |
static int |
TC_XQ |
static int |
XA_CLIENT |
static int |
XA_COMMIT |
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.String |
getOperation()
returns the string of the operation
|
javax.jms.TopicPublisher |
getTopicPublisher()
returns an on-demand publisher in a separate session
|
javax.jms.TopicSubscriber |
getTopicSubscriber()
returns an on-demand subscriber in a separate session
|
void |
onException(javax.jms.JMSException e)
catches JMSException of Connection asynchronously
|
void |
pub(java.io.InputStream in)
continuously gets the JMS messages from the InputStream and publishes
them with the JMS topic.
|
void |
pub(XQueue xq)
continuously gets the JMS messages from the XQueue and publishes them
with the JMS topic.
|
java.lang.String |
reconnect()
reconnects to the JMS server for the operation or returns error text
|
void |
sub(java.lang.Object out)
continuously subscribes the JMS messages from the JMS topic and puts
them to the output, either a queue, a topic, a stream or an XQueue.
|
void |
tClose()
closes the topic
|
void |
tOpen()
opens the topic for the operation
|
int |
tReopen()
reopens the topic for the operation
|
static final int TC_QUEUE
static final int TC_TOPIC
static final int TC_STREAM
static final int TC_XQ
static final int XA_CLIENT
static final int XA_COMMIT
void sub(java.lang.Object out) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
void pub(XQueue xq) throws TimeoutException, javax.jms.JMSException
TimeoutException
javax.jms.JMSException
void pub(java.io.InputStream in) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
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.TopicSubscriber getTopicSubscriber()
javax.jms.TopicPublisher getTopicPublisher()
java.lang.String getOperation()
void tOpen() throws javax.jms.JMSException
javax.jms.JMSException
void tClose() throws javax.jms.JMSException
javax.jms.JMSException
int tReopen()
java.lang.String reconnect()
void onException(javax.jms.JMSException e)
onException
in interface javax.jms.ExceptionListener
void close()