|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.administration.commandline.MQeAbstractCmdLineAdminTool | +--examples.administration.commandline.IniFileCreator
A command-line tool to create the simplest MQe queue manager .ini files possible.
Syntax
java examples.administration.commandline.IniFileCreator <iniFilePath> <qMgrName> <registryDir> <qMgrType> <port> <pin> <keyRingPassword> <msgLogAlias> <registryType> <listeningAdapter> <registryAdapter> <adminQStore> <adminReplyQStore> <deadLetterQStore> <systemDefaultLocalQStore> <propertyList>
Parameters
Example
Java ...IniFileCreator C:\sMQe\QMgrs\MyQM\MyQM.ini MyQM C:\MQe\QMgrs\MyQM\Registry\ Server 8085 12345678 my_secret default FileRegistry FastNetwork
Creates an .ini file for a device queue manager "MyQM".
Field Summary | |
static java.lang.String |
syntax
|
static short[] |
version
|
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool |
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS |
Constructor Summary | |
IniFileCreator()
|
Method Summary | |
void |
activate(java.lang.String[] args)
Uses the command-line parameters to call the method doing the work. |
void |
createDeviceQMIniFile(java.lang.String iniFileName,
java.lang.String qMgrName,
java.lang.String registryDir,
java.lang.String pin,
java.lang.String keyRingPassword,
java.lang.String msgLogAlias,
java.lang.String registryType,
java.lang.String registryAdapter,
java.util.Hashtable properties)
Creates an .ini file for the device queue manager. |
void |
createServerQMIniFile(java.lang.String iniFileName,
java.lang.String qMgrName,
java.lang.String registryDir,
java.lang.String portString,
java.lang.String pin,
java.lang.String keyRingPassword,
java.lang.String msgLogAlias,
java.lang.String registryType,
java.lang.String registryAdapter,
java.lang.String listenerAdapter,
java.util.Hashtable properties)
Creates an .ini file for the server queue manager (with no bridge function). |
static void |
main(java.lang.String[] args)
Allows the tool to be called from the command-line. |
Methods inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool |
checkAdminReply, primeAdminMsg, processAdminMsg, sendWaitMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public static final java.lang.String syntax
Constructor Detail |
public IniFileCreator()
Method Detail |
public static void main(java.lang.String[] args)
public void activate(java.lang.String[] args) throws java.lang.Exception
args
- Array of string arguments from the command-line.
java.lang.Exception
public void createDeviceQMIniFile(java.lang.String iniFileName, java.lang.String qMgrName, java.lang.String registryDir, java.lang.String pin, java.lang.String keyRingPassword, java.lang.String msgLogAlias, java.lang.String registryType, java.lang.String registryAdapter, java.util.Hashtable properties) throws java.lang.Exception
iniFileName
- A string containing the fully-qualified or relative- path name of the .ini file
which is going to be created.qMgrName
- A string containing the name of the MQe queue manager name for which the .ini file
is being produced.registryDir
- A string containing the fully-qualified path name of the directory in which registry
information will be placed.
This parameter (rather unusually) requires a trailing directory-separator character.pin
- The PIN number to encrypt the registry with.keyRingPassword
- The keyring password to use when accessing keys within the registry.msgLogAlias
- What the "MsgLog" class alias should map to for this queue manager.
Use "default" to set it to the usual value.registryType
- The name of the type of registry session we will use. "FileRegistry" or "PrivateRegistry" are good values.
java.lang.Exception
public void createServerQMIniFile(java.lang.String iniFileName, java.lang.String qMgrName, java.lang.String registryDir, java.lang.String portString, java.lang.String pin, java.lang.String keyRingPassword, java.lang.String msgLogAlias, java.lang.String registryType, java.lang.String registryAdapter, java.lang.String listenerAdapter, java.util.Hashtable properties) throws java.lang.Exception
iniFileName
- A string containing the fully-qualified or relative- path name of the .ini file
which is going to be created.qMgrName
- A string containing the name of the MQe queue manager name for which the .ini file
is being produced.registryDir
- A string containing the fully-qualified path name of the directory in which registry
information will be placed.
This parameter (rather unusually) requires a trailing directory-separator character.portString
- A string containing an integer number.
Indicates which port the server queue manager will set it's client-server listener and channel manager up on.
For example, 8082pin
- The PIN number to encrypt the registry with.keyRingPassword
- The keyring password to use when accessing keys within the registry.msgLogAlias
- What the "MsgLog" class alias should map to for this queue manager.
Use "default" to set it to the usual value.registryType
- The name of the type of registry session we will use. "FileRegistry" or "PrivateRegistry" are good values.listenerAdapter
- A String holding the class name (or alias of a class name) of an MQe communications adapter.
Examples are: "Network" , "FastNetwork" , "com.ibm.mqe.adpaters.MQeHTTPTcpipAdapter"
Note that the .class extension is not specified.
java.lang.Exception
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |