Package com.ibm.di.systemqueue.driver
Class IBMMQ
- java.lang.Object
-
- com.ibm.di.systemqueue.driver.IBMMQ
-
-
Field Summary
Fields Modifier and Type Field Description protected JMSDriverLoglogprotected java.lang.StringmChannelDriver properties for Channelprotected java.lang.StringmCipherSuiteDriver properties for CipherSuitprotected java.lang.StringmHostDriver properties for Hostprotected intmPortDriver properties for Portprotected java.lang.StringmQmgrDriver properties for QueueManagerprotected booleanmSSLDriver properties for SSLprotected java.lang.StringmURLDriver properties for Urlstatic java.lang.StringPROP_MQ_BROKERJMS Driver property name used for brokerstatic java.lang.StringPROP_MQ_CHANNELJMS Driver property name used for channelstatic java.lang.StringPROP_MQ_QMANAGERJMS Driver property name used for queue managerstatic java.lang.StringPROP_MQ_SSL_CIPHERJMS Driver property name used for sslCipherstatic java.lang.StringPROP_MQ_SSL_USE_FLAGJMS Driver property name used for ssl flagprotected ResourceHashresHashResourceHash used for access of the TMS messages-
Fields inherited from interface com.ibm.di.systemqueue.driver.JMSDriver
ENVIRONMENT_LOG, JMS_DRIVER_TMS_FILE
-
-
Constructor Summary
Constructors Constructor Description IBMMQ()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.QueueConnectionFactorygetQueueFactory()This method retrieves the provider-specific javax.jms.QueueConnectionFactory objectjavax.jms.TopicConnectionFactorygetTopicFactory()This method retrieves the provider-specific javax.jms.TopicConnectionFactory objectvoidinitialize(java.util.Hashtable env)The initialize(Hastable env) method is passed a java.util.Hashtable object which stores provider-specific parameters, which can be used for connecting to a specific instance of the JMS server.voidterminate()This is a call-back method used to notify the JMS Driver so it could clean any used resources.
-
-
-
Field Detail
-
PROP_MQ_BROKER
public static final java.lang.String PROP_MQ_BROKER
JMS Driver property name used for broker- See Also:
- Constant Field Values
-
PROP_MQ_CHANNEL
public static final java.lang.String PROP_MQ_CHANNEL
JMS Driver property name used for channel- See Also:
- Constant Field Values
-
PROP_MQ_QMANAGER
public static final java.lang.String PROP_MQ_QMANAGER
JMS Driver property name used for queue manager- See Also:
- Constant Field Values
-
PROP_MQ_SSL_CIPHER
public static final java.lang.String PROP_MQ_SSL_CIPHER
JMS Driver property name used for sslCipher- See Also:
- Constant Field Values
-
PROP_MQ_SSL_USE_FLAG
public static final java.lang.String PROP_MQ_SSL_USE_FLAG
JMS Driver property name used for ssl flag- See Also:
- Constant Field Values
-
mSSL
protected boolean mSSL
Driver properties for SSL
-
mURL
protected java.lang.String mURL
Driver properties for Url
-
mChannel
protected java.lang.String mChannel
Driver properties for Channel
-
mQmgr
protected java.lang.String mQmgr
Driver properties for QueueManager
-
mHost
protected java.lang.String mHost
Driver properties for Host
-
mCipherSuite
protected java.lang.String mCipherSuite
Driver properties for CipherSuit
-
mPort
protected int mPort
Driver properties for Port
-
log
protected JMSDriverLog log
-
resHash
protected ResourceHash resHash
ResourceHash used for access of the TMS messages
-
-
Method Detail
-
initialize
public void initialize(java.util.Hashtable env) throws java.lang.ExceptionThe initialize(Hastable env) method is passed a java.util.Hashtable object which stores provider-specific parameters, which can be used for connecting to a specific instance of the JMS server. Normally this method would use the supplied parameters to connect to the JMS server and obtain a javax.jms.TopicConnectionFactory object and/or a javax.jms.QueueConnectionFactory object. Then the method would store the object(s) in member variables so that it/they can be later retrieved via the getQueueFactory() and/or the getTopicFactory() method.- Specified by:
initializein interfaceJMSDriver- Parameters:
env- Hashtable that holds Driver properties- Throws:
java.lang.Exception- if JMS Driver cannot be initialized
-
getQueueFactory
public javax.jms.QueueConnectionFactory getQueueFactory() throws java.lang.ExceptionThis method retrieves the provider-specific javax.jms.QueueConnectionFactory object- Specified by:
getQueueFactoryin interfaceJMSDriver- Returns:
- QueueConnectionFactory object of the JMS Driver
- Throws:
java.lang.Exception- if QueueConnectionFactory cannot be created
-
getTopicFactory
public javax.jms.TopicConnectionFactory getTopicFactory() throws java.lang.ExceptionThis method retrieves the provider-specific javax.jms.TopicConnectionFactory object- Specified by:
getTopicFactoryin interfaceJMSDriver- Returns:
- TopicConnectionFactory object of the JMS Driver
- Throws:
java.lang.Exception- if TopicConnectionFactory cannot be created
-
terminate
public void terminate() throws java.lang.ExceptionThis is a call-back method used to notify the JMS Driver so it could clean any used resources. This method should be used in very rare cases.
-
-