|
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
A ConnectionFactory
encapsulates a set of connection configuration
parameters that has been defined by an administrator. A client uses
it to create a Connection
with a JMS provider.
A ConnectionFactory is a JMS administered object. More information on configuring an MQeConnectionFactory can be found in Chapter 10 of the WebSphere MQ Everyplace Application Programming Guide.
Constructor Summary | |
MQeConnectionFactory()
|
Method Summary | |
java.lang.String |
getClientID()
Get the client identifier used by all connections created using this Factory. |
java.lang.String |
getDescription()
Get the connection factory description. |
int |
getDUPSOKCount()
Get the number of messages that a Session in DUPS_OK_ACKNOWLEDGE mode will receive before acknowledging the messages. |
java.lang.String |
getIniFileName()
This method returns the name of the configuration (ini) file which will be used to start a queue manager. |
java.lang.String |
getTransactionLogURL()
Get the URL used to store the transaction log. |
void |
setClientID(java.lang.String id)
Set the client identifier to be used for all connections created using this Factory. |
void |
setDescription(java.lang.String desc)
Set the connection factory description. |
void |
setDUPSOKCount(int count)
Set the number of messages that a Session in DUPS_OK_ACKNOWLEDGE mode will accept before acknowledging the received messages. |
void |
setIniFileName(java.lang.String iniFile)
This method sets the name of the configuration (ini) file which startQueueManager() uses to start a client queue manager. |
void |
setTransactionLogURL(java.lang.String url)
Set the URL to be used to store transaction logs. |
void |
setVerboseStartup(boolean verbose)
Display diagnostic information during WebSphere MQ Everyplace Queue Manager startup. |
MQeQueueManager |
startQueueManager()
This method is called when it is necessary to start an instance of the MQe queue manager. |
void |
stopQueueManager()
This method is called by when the last active connection is closed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MQeConnectionFactory()
Method Detail |
public final void setClientID(java.lang.String id)
id
- The value to be set for the client Idpublic final java.lang.String getClientID()
public void setIniFileName(java.lang.String iniFile)
There would normally be no need to override this method.
iniFile
- The name of the ini file to be used to start the
queue manager.
public java.lang.String getIniFileName()
There would normally be no need to override this method.
public void setTransactionLogURL(java.lang.String url) throws javax.jms.JMSException
In WebSphere MQ Everyplace v2.0 the only valid URL is one that refers to the filesystem
(i.e. it starts with file://...
), for example file://C:\Temp\Logs
.
By default transaction logs are stored in a subdirectory of the working directory named
./MQe_TL
.
javax.jms.JMSException
- if the URL does not refer to the filesystempublic java.lang.String getTransactionLogURL()
public final void setDescription(java.lang.String desc)
public final java.lang.String getDescription()
public final void setDUPSOKCount(int count) throws javax.jms.JMSException
javax.jms.JMSException
- if a zero or negative count in specifiedpublic final int getDUPSOKCount()
public MQeQueueManager startQueueManager() throws javax.jms.JMSException
This method can be overridden if the administrator wants to start a
queue manager differently. Note that this method is public so that it can be
overridden easily (from another package if necessary) and is not intended to be called
directly. If this method is overridden then it may also be necessary to override
stopQueueManager()
.
java.lang.Exception
- propagated if there is an error starting
the queue manager.
javax.jms.JMSException
public void stopQueueManager() throws java.lang.Exception
startQueueManager()
had started a client queue manager,
this method stops it. If startQueueManager()
found an instance of
a running queue manager, this method doesn’t do anything.
Like startQueueManager
, this method is public so that it can be
overridden if required, rather than to enable it to be called directly.
java.lang.Exception
- propagated if there is an error stopping
the queue manager.public void setVerboseStartup(boolean verbose)
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |