com.ibm.di.systemqueue.driver
Interface JMSDriver

All Known Implementing Classes:
IBMMQ, IBMMQe, JMSScriptDriver

public interface JMSDriver

The JMS Driver interface. It exposes the public method that are specific for different JMS Drivers. getQueueFactory() and getTopicFactory() returns specific QueueConnectionFactory/TopicConnectionFactory of the JMS Driver.


Method Summary
 javax.jms.QueueConnectionFactory getQueueFactory()
          This method retrieves the provider-specific javax.jms.QueueConnectionFactory object
 javax.jms.TopicConnectionFactory getTopicFactory()
          This method retrieves the provider-specific javax.jms.TopicConnectionFactory object
 void initialize(Hashtable aEnv)
          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.
 

Method Detail

initialize

void initialize(Hashtable aEnv)
                throws Exception
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. 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.

Parameters:
aEnv - Hashtable that holds Driver properties
Throws:
Exception - if JMS Driver cannot be initialized

getQueueFactory

javax.jms.QueueConnectionFactory getQueueFactory()
                                                 throws Exception
This method retrieves the provider-specific javax.jms.QueueConnectionFactory object

Returns:
QueueConnectionFactory object of the JMS Driver
Throws:
Exception - if QueueConnectionFactory cannot be created

getTopicFactory

javax.jms.TopicConnectionFactory getTopicFactory()
                                                 throws Exception
This method retrieves the provider-specific javax.jms.TopicConnectionFactory object

Returns:
TopicConnectionFactory object of the JMS Driver
Throws:
Exception - if TopicConnectionFactory cannot be created