13. Create a listener (on QM2) called L2

When you have created a remote queue definition, you need to create a listener.

Creating a listener using MQe_Script:

You can use the following MQe_Script command to create a listener called L2 (on queue manager QM2):
mqe_script_listen -create -listenname L2 -port 1881

Creates a listener for queue manager QM2 and listens on port 1881. The default communications adapter is used, which is the Http adapter.

Creating a listener programmatically:

For more information on using Java to create a listener, see Configuring a listener. For an example, see Java.

Parent topic: Walkthrough: creating a basic application
Previous topic: 12. Create a remote queue definition (on QM2)
Next topic: 14. Start the listener L2 (on QM2)