java examples.jms.PTPSample01 -nojndi -i <ini file name>where <ini file name > is the name of the initialization (ini) file for the MQe queue manager. By default, the program will use the SYSTEM.DEFAULT.LOCAL.QUEUE on this queue manager. You can specify a different queue by using the -q flag:
java examples.jms.PTPSample01 -i <ini file name> -q <queue name>You can also turn tracing on by adding the -t flag:
java examples.jms.PTPSample01 -t -i <ini file name> -q <queue name>
The examples.jms.PTPSample02 program uses message listeners and filters. This program creates a QueueReceiver with a "blue" filter and creates a message listener for it. It creates a second QueueReceiver with a "red" filter and message listener. It then sends four messages to a queue, two with the filter property colour set to blue and two with the filter property colour set to red, and checks that the message listeners receive the correct messages. The program has the same command line parameters as examples.jms.PTPSample01.