Broker 10.5 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | webMethods Messaging Administration | JMSAdmin Command Reference | JMSAdmin Command Descriptions | Connect
 
Connect
Establishes a connection to a Broker.
Syntax
{ connect | conn } [ to ] [ broker broker-name ]
[ server server[:port] ]
The command syntax has these parts:
Part
Description
broker
Optional. The name of the Broker on the Broker Server.
If you omit this parameter, JMSAdmin will connect to the default broker.
server
Optional.The name of the Broker Server.
If you omit this parameter, JMSAdmin will connect to localhost.
port
Optional. The port number for the default Broker Server.
The default port number is 6849.
Remarks
The following JMSAdmin commands require a Broker connection:
create group
delete queue
create durable subscriber
delete topic
create queue
deny
create topic
display
delete durable subscriber
initialize broker
delete group
permit
You can only use one JMSAdmin to Broker connection at a time. Creating a new connection terminates an existing one.
To use a basic authenticated connection, you must set the following system variables using the set command or with the proper command-line arguments at JMSAdmin startup:
$user
$password
To use an SSL connection, you must set the following system variables using the set command or with the proper command-line arguments at JMSAdmin startup:
$sslKeystore
$sslEncrypted
$sslDN
$sslPassword
For more information, see System Variables.
Examples
Connect to the following Brokers:
The default Broker on localhost.
\> connect
Broker "JMS Test" on localhost.
\> connect to broker "JMS Test"
The default Broker on the testserver host system using port 7849.
\> connect server testserver:7849
Broker "JMS Test" on the default port (6849) of the testserver host system.
\> connect broker "JMS Test" server testserver
Related Commands
Create Broker
Disconnect
Initialize Broker