|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.jms.MQeConnectionFactory | +--com.ibm.mqe.jms.MQeJNDIConnectionFactory
MQeJNDIConnectionFactory
extends MQeConnectionFactory
and adds support for storing and retrieving the object using JNDI.
More information on configuring an MQeJNDIConnectionFactory can be found in Chapter 10 of the WebSphere MQ Everyplace Application Programming Guide.
MQeConnectionFactory
,
Serialized FormConstructor Summary | |
MQeJNDIConnectionFactory()
Default constructor. |
|
MQeJNDIConnectionFactory(java.lang.String iniFileName)
Constructor taking a String containing the name of a initialization file. |
Method Summary | |
javax.jms.Connection |
createConnection()
Creates a connection with the default user identity. |
javax.jms.Connection |
createConnection(java.lang.String username,
java.lang.String password)
Creates a connection with the specified user identity. |
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 |
public MQeJNDIConnectionFactory()
public MQeJNDIConnectionFactory(java.lang.String iniFileName)
MQeJNDIConnectionFactory cf = new MQeJNDIConnectionFactory();
cf.setIniFileName("filename.ini");
Method Detail |
public final javax.jms.Connection createConnection() throws javax.jms.JMSException
Connection.start
method
is explicitly called.
createConnection
in class MQeConnectionFactory
javax.jms.JMSException
- if the JMS provider fails to create the
connection due to some internal error.public javax.jms.Connection createConnection(java.lang.String username, java.lang.String password) throws javax.jms.JMSException
Connection.start
method
is explicitly called.
createConnection
in class MQeConnectionFactory
password
- the caller's password
javax.jms.JMSException
- if the JMS provider fails to create the
connection due to some internal error.
javax.jms.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |