Line(s) | Description |
1 | Start JMSAdmin using a properties filename. The tool connects to JNDI with the configuration properties specified in the sample properties file. |
2 | Bind connection factories into a JNDI context for the sender and receiver applications, and assign them to a Broker group. Note: Note that the connection factory names must be different for the two applications. The last bind command binds the topic to which the message will be delivered into a subcontext. For more information, see Bind TopicConnectionFactory and Bind Topic. |
3 | Connect to the Broker. Using the connect command without parameters starts a connection to the default Broker on the default server (localhost on port 6849), as indicated by the message shown after the connection is made. For more information, see
Connect. |
4 | Create the topic used by the sender and receiver applications. You can only use create topic after a connection to the Broker has been established. For more information, see
Create Topic. |
5 | Create groups for the sender and receiver applications and assign them the appropriate Broker publish and subscribe access permissions. For more information, see
Create Group and
Permit. |
6 | End the JMSAdmin session using the end command. |