public abstract class JMSTConnector extends java.lang.Object implements TopicConnector
| Modifier and Type | Field and Description | 
|---|---|
| protected int | batchSize | 
| protected int | boundary | 
| protected javax.jms.TopicPublisher | bPublisher | 
| protected javax.jms.TopicSession | bSession | 
| protected javax.jms.TopicSubscriber | bSubscriber | 
| protected int | bufferSize | 
| protected int | cellID | 
| protected boolean | check_body | 
| protected java.lang.String | clientID | 
| protected java.lang.String | connectionFactoryName | 
| protected int | displayMask | 
| protected boolean | enable_exlsnr | 
| protected long | endTime | 
| protected byte[] | eotBytes | 
| protected long | expiry | 
| protected boolean | isDurable | 
| protected boolean | isPhysical | 
| protected int | maxIdleTime | 
| protected int | maxMsgLength | 
| protected int | maxNumberMsg | 
| protected int | mode | 
| protected static int | MS_EOT | 
| protected static int | MS_SOT | 
| protected java.lang.String | msgID | 
| protected java.lang.String | msgSelector | 
| protected int | offhead | 
| protected int | offtail | 
| protected java.lang.String | operation | 
| protected int | overwrite | 
| protected int[] | partition | 
| protected java.lang.String | password | 
| protected int | persistence | 
| protected int | priority | 
| protected java.lang.String[] | propertyName | 
| protected java.lang.String[] | propertyValue | 
| protected int | receiveTime | 
| protected boolean | resetOption | 
| protected int | sleepTime | 
| protected byte[] | sotBytes | 
| protected long | startTime | 
| protected java.lang.String | subscriptionID | 
| protected javax.jms.TopicConnection | tConnection | 
| protected int | textMode | 
| protected java.lang.String | tName | 
| protected javax.jms.Topic | topic | 
| protected javax.jms.TopicPublisher | tPublisher | 
| protected javax.jms.TopicSession | tSession | 
| protected javax.jms.TopicSubscriber | tSubscriber | 
| protected java.lang.String | username | 
| protected long | waitTime | 
| protected boolean | withFlowControlDisabled | 
| protected int | xaMode | 
| Constructor and Description | 
|---|
| JMSTConnector() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()closes all opened resources | 
| protected javax.jms.JMSException | commit(XQueue xq,
      int[] batch,
      int size) | 
| protected void | connect() | 
| javax.jms.Message | createMessage(int type)returns a JMS Message with the initialized JMSSession | 
| javax.jms.Queue | createQueue(java.lang.String queueName)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 non-durable subscriber in a separate session | 
| protected abstract javax.jms.TopicConnectionFactory | initialize()Initializes the JMS components (TopicConnectionFactory,
 TopicConnection, TopicPublisher, BytesMessage) for use
 later in the application | 
| void | onException(javax.jms.JMSException e)catches JMSException of Connection asynchronously | 
| void | pub(java.io.InputStream in)read bytes from the InputStream and publish them into a JMS topic as
 JMS messages. | 
| void | pub(XQueue xq)It gets JMS messages from the XQueue and publishes them on a given
 JMS topic. | 
| java.lang.String | reconnect()reconnects to the JMS topic and returns null upon success | 
| protected void | rollback(XQueue xq,
        int[] batch,
        int size) | 
| void | sub(java.lang.Object out)It subscribes a JMS topic and sends the JMS messages into a output
 channel that may be a JMS destination, an OutputStream or an XQueue. | 
| void | tClose()closes the JMS topic resources | 
| void | tOpen()opens the topic resources | 
| int | tReopen()reopens the topic | 
protected javax.jms.TopicConnection tConnection
protected javax.jms.TopicSession tSession
protected javax.jms.TopicSession bSession
protected javax.jms.TopicPublisher tPublisher
protected javax.jms.TopicPublisher bPublisher
protected javax.jms.TopicSubscriber tSubscriber
protected javax.jms.TopicSubscriber bSubscriber
protected javax.jms.Topic topic
protected int bufferSize
protected java.lang.String connectionFactoryName
protected java.lang.String tName
protected java.lang.String username
protected java.lang.String password
protected java.lang.String clientID
protected java.lang.String subscriptionID
protected java.lang.String msgID
protected int[] partition
protected int displayMask
protected long expiry
protected int persistence
protected int priority
protected int overwrite
protected int mode
protected java.lang.String[] propertyName
protected java.lang.String[] propertyValue
protected java.lang.String msgSelector
protected java.lang.String operation
protected int maxMsgLength
protected int maxNumberMsg
protected int maxIdleTime
protected long startTime
protected long endTime
protected long waitTime
protected int receiveTime
protected int sleepTime
protected int textMode
protected int xaMode
protected int cellID
protected int batchSize
protected int boundary
protected int offhead
protected int offtail
protected byte[] sotBytes
protected byte[] eotBytes
protected static final int MS_SOT
protected static final int MS_EOT
protected boolean isPhysical
protected boolean enable_exlsnr
protected boolean isDurable
protected boolean check_body
protected boolean resetOption
protected boolean withFlowControlDisabled
protected abstract javax.jms.TopicConnectionFactory initialize()
                                                        throws javax.jms.JMSException
javax.jms.JMSException - occurs on any JMS Errorprotected void connect()
                throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void tOpen()
           throws javax.jms.JMSException
tOpen in interface TopicConnectorjavax.jms.JMSExceptionpublic int tReopen()
tReopen in interface TopicConnectorpublic void tClose()
            throws javax.jms.JMSException
tClose in interface TopicConnectorjavax.jms.JMSExceptionpublic java.lang.String reconnect()
reconnect in interface TopicConnectorpublic void sub(java.lang.Object out)
         throws java.io.IOException,
                javax.jms.JMSException
sub in interface TopicConnectorjava.io.IOExceptionjavax.jms.JMSExceptionpublic void pub(java.io.InputStream in)
         throws java.io.IOException,
                javax.jms.JMSException
pub in interface TopicConnectorjava.io.IOExceptionjavax.jms.JMSExceptionpublic void pub(XQueue xq) throws TimeoutException, javax.jms.JMSException
pub in interface TopicConnectorTimeoutExceptionjavax.jms.JMSExceptionprotected javax.jms.JMSException commit(XQueue xq, int[] batch, int size)
protected void rollback(XQueue xq, int[] batch, int size)
public java.lang.String getOperation()
TopicConnectorgetOperation in interface TopicConnectorpublic javax.jms.TopicPublisher getTopicPublisher()
getTopicPublisher in interface TopicConnectorpublic javax.jms.TopicSubscriber getTopicSubscriber()
getTopicSubscriber in interface TopicConnectorpublic javax.jms.Message createMessage(int type)
                                throws javax.jms.JMSException
TopicConnectorcreateMessage in interface TopicConnectorjavax.jms.JMSExceptionpublic javax.jms.Queue createQueue(java.lang.String queueName)
                            throws javax.jms.JMSException
TopicConnectorcreateQueue in interface TopicConnectorjavax.jms.JMSExceptionpublic void onException(javax.jms.JMSException e)
TopicConnectoronException in interface javax.jms.ExceptionListeneronException in interface TopicConnectorpublic void close()
TopicConnectorclose in interface TopicConnector