4. Create a connection definition

When you have created your local queue (Q1), you need to create a connection definition, specifying the following:
  • The name of the queue manager that you want to connect to (the remote queue manager)
  • The port on which the remote queue manager will be listening
  • The communications adapter.

Creating a connection definition using MQe_Script:

You can use the following MQe_Script command to create a connection definition:
mqe_script_condef -create -cdname QM2 -port 1881

This command creates a connection definition to a queue manager called QM2, which is listening on port 1881. It is not necessary for QM2 to exist when the connection is created, but it must exist when you try to send a message to a remote queue on that queue manager. As no adapter is specified, the Http adapter is used by default.

Creating a connection definition programmatically:

For more information on using Java or C to create a connection definition, see Configuring connection definitions. For examples in Java™ and C, see Creating a connection definition and Creating a connection definition.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.