Websphere MQ Everyplace

com.ibm.mqe.jms
Class MQeJNDIQueueConnectionFactory

java.lang.Object
  |
  +--com.ibm.mqe.jms.MQeConnectionFactory
        |
        +--com.ibm.mqe.jms.MQeJNDIConnectionFactory
              |
              +--com.ibm.mqe.jms.MQeJNDIQueueConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.naming.Referenceable, java.io.Serializable

public class MQeJNDIQueueConnectionFactory
extends MQeJNDIConnectionFactory

MQeJNDIQueueConnectionFactory extends MQeQueueConnectionFactory and adds support for storing and retrieving the object using JNDI.

More information on configuring an MQeJNDIQueueConnectionFactory can be found in Chapter 10 of the WebSphere MQ Everyplace Application Programming Guide.

See Also:
MQeConnectionFactory, MQeQueueConnectionFactory, Serialized Form

Constructor Summary
MQeJNDIQueueConnectionFactory()
          Default constructor.
MQeJNDIQueueConnectionFactory(java.lang.String iniFileName)
          Constructor taking a String containing the name of a initialization file.
 
Method Summary
 javax.jms.QueueConnection createQueueConnection()
          Creates a queue connection with the default user identity.
 javax.jms.QueueConnection createQueueConnection(java.lang.String username, java.lang.String password)
          Creates a queue connection with the specified user identity.
 
Methods inherited from class com.ibm.mqe.jms.MQeJNDIConnectionFactory
createConnection, createConnection
 
Methods inherited from class com.ibm.mqe.jms.MQeConnectionFactory
getAuthenticatorClass, getClientID, getDescription, getDUPSOKCount, getIniFileName, getJMSXEnabled, getShutdownDelay, isSQLAllowed, setAuthenticatorClass, setClientID, setDescription, setDUPSOKCount, setIniFileName, setJMSXEnabled, setShutdownDelay, setVerboseStartup, startQueueManager, stopQueueManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

MQeJNDIQueueConnectionFactory

public MQeJNDIQueueConnectionFactory()
Default constructor. Creates a MQeJNDIQueueConnectionFactory with default configuration values.


MQeJNDIQueueConnectionFactory

public MQeJNDIQueueConnectionFactory(java.lang.String iniFileName)
Constructor taking a String containing the name of a initialization file. This is equivalent to;

MQeJNDIQueueConnectionFactory cf = new MQeJNDIQueueConnectionFactory();
cf.setIniFileName("filename.ini");

Method Detail

createQueueConnection

public javax.jms.QueueConnection createQueueConnection()
                                                throws javax.jms.JMSException
Creates a queue connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Returns:
a queue connection
Throws:
javax.jms.JMSException - if the JMS provider fails to create the queue connection due to some internal error.

createQueueConnection

public javax.jms.QueueConnection createQueueConnection(java.lang.String username,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Creates a queue connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Parameters:
password - the caller's password
Returns:
a queue connection
Throws:
javax.jms.JMSException - if the JMS provider fails to create the queue connection due to some internal error.
javax.jms.JMSSecurityException - if client authentication fails due to an invalid user name or password.

Websphere MQ Everyplace