Broker 10.15 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | webMethods Messaging Administration | JMSAdmin Command Reference | JMSAdmin Command Descriptions | Set
 
Set
Creates, sets, and displays variables.
Syntax
set [ { $variableName | %variableName } [ =value ] ]
Remarks
You can use variables to represent values for properties in commands. You can also use this command to display the values of all variables.
Names of variables must begin with a dollar sign ($) or percent sign (%). Variable names are not case-sensitive. If a value contains a space, enclose it within a pair of single- or double-quote marks.
You can use set to view the values of the system variables $_Broker and $_Server. You can also use it to modify SSL system variables.
Variable names that begin with "$_" are reserved for read-only system variables. JMSAdmin will not permit you to create a variable whose name starts with this character combination.
Examples
The following commands set the variable $bHost to testserver:8849 and the variable $bName to Broker01_VA:
\> set $bHost = testserver:8849
\> set $bName = Broker01_VA
The following command displays the value of the variable $bName:
\> set $bName
The following command lists all current variable settings:
\> set
The following commands use variables as parameter values for the connect and bind commands:
\> connect broker $bName server $bHost
\> bind TopicConnectionFactory Tcf1 with brokerHost=$bHost brokerName=$bName
Using System Variables
You can use the set command with the following system variables:
System Variable
Description
$_Broker
Read-only. Contains the name of the Broker to which JMSAdmin is currently connected. This variable will contain an empty string if JMSAdmin is not connected to a Broker. For more information, see the Connect and Disconnect commands.
$_Server
Read-only. Contains the name of the Broker Server to which JMSAdmin is currently connected. This variable will contain an empty string if JMSAdmin is not connected to a Broker Server. For more information, see the Connect and Disconnect commands.
$sslKeystore
Specifies the filename containing the SSL certificate (keystore) that JMSAdmin will use when connecting to the Broker using SSL.
$sslPassword
Specifies the password JMSAdmin will use when connecting to the Broker using SSL.
$sslEncrypted
Indicates whether JMSAdmin will use encryption when connected to the Broker using SSL. Set the variable to true to enable encryption; set to false otherwise.
$sslTruststore
Specifies the file containing the trusted root (CA public key) to use when making SSL connections to the Broker.
Related Commands
Display