//Need to set the following properties
//BrokerType, BrokerInstanceName, BrokerPort,
//BrokerArgs, BrokerHomeDir, BrokerVarDir, BrokerStartTimeout
//adminUserName, adminPassword
ConnectorDescriptor cd = getDescriptor();
EnvironmentProperty envProp1 = new EnvironmentProperty (
BROKERTYPE, brokerType, "Broker Type", "java.lang.String");
setProperty(cd, envProp1);
EnvironmentProperty envProp2 = new EnvironmentProperty (
BROKERINSTANCENAME, brokerInstanceName ,
"Broker Instance Name", "java.lang.String");
setProperty(cd, envProp2);
EnvironmentProperty envProp3 = new EnvironmentProperty (
BROKERPORT , brokerPort ,
"Broker Port", "java.lang.String");
setProperty(cd, envProp3);
EnvironmentProperty envProp4 = new EnvironmentProperty (
BROKERARGS , brokerArgs ,
"Broker Args", "java.lang.String");
setProperty(cd, envProp4);
EnvironmentProperty envProp5 = new EnvironmentProperty (
BROKERHOMEDIR , brokerHomeDir ,
"Broker Home Dir", "java.lang.String");
setProperty(cd, envProp5);
EnvironmentProperty envProp14 = new EnvironmentProperty (
BROKERLIBDIR , brokerLibDir ,
"Broker Lib Dir", "java.lang.String");
setProperty(cd, envProp14);
EnvironmentProperty envProp6 = new EnvironmentProperty (
BROKERJAVADIR , java_home ,
"Broker Java Dir", "java.lang.String");
setProperty(cd, envProp6);
EnvironmentProperty envProp7 = new EnvironmentProperty (
BROKERVARDIR , brokerVarDir ,
"Broker Var Dir", "java.lang.String");
setProperty(cd, envProp7);
EnvironmentProperty envProp8 = new EnvironmentProperty (
BROKERSTARTTIMEOUT , "" + brokerTimeOut ,
"Broker Start Timeout", "java.lang.String");
setProperty(cd, envProp8);
EnvironmentProperty envProp9 = new EnvironmentProperty (
ADMINUSERNAME , adminUserName,
"Broker admin username", "java.lang.String");
setProperty(cd, envProp9);
EnvironmentProperty envProp10 = new EnvironmentProperty (
ADMINPASSWORD , adminPassword ,
"Broker admin password", "java.lang.String");
setProperty(cd, envProp10);
EnvironmentProperty envProp11 = new EnvironmentProperty (
USERNAME , username,
"Broker username", "java.lang.String");
setProperty(cd, envProp11);
EnvironmentProperty envProp12 = new EnvironmentProperty (
PASSWORD , password,
"Broker password", "java.lang.String");
setProperty(cd, envProp12);
//set adminpassfile
if (!jmsService.getType().equals(REMOTE)) {
//For LOCAL and EMBEDDED, we pass in the admin pass file path
//containing the MQ admin password to enable authenticated
//startup of the broker.
String adminPassFilePath = getAdminPassFilePath(adminPassword);
if (adminPassFilePath != null) {
EnvironmentProperty envProp13 = new EnvironmentProperty (
ADMINPASSFILE , adminPassFilePath ,
"Broker admin password", "java.lang.String");
setProperty(cd, envProp13);
}
}