I am relatively new to IBM MQ.
My requirement is to connect to a Remote IBM MQ Server Queue through IBM MQ Client. And then, access the queue through MQ Client using IBM MQ Java API.
Is this the right approach?
I have already setup IBM MQ Server, IBM MQ Explorer on my local machine, created a Queue Manager, Queue. I have also written a Java program to connect to MQ using IBM MQ API.
This Java program has the following parameters:
String queueManagerName = "QUEUE.MANAGER.1";
String userID = "";
String password = "";
String queueName = "QUEUE1";
String hostName = "localhost";
String channel = "CHANNEL1";
int port = 1414;
Here, everything seems to work fine. I can send/receive messages from/to the MQ Server Queue through the Java program.
Now, I have installed IBM MQ Client on the same machine, how do I connect to the same Server Queue using the java program through the MQ Client?
My requirement is to have:
- MQ Server running on a different machine.
- Connect to the Server Queue using the MQ Client installed on local machine.
- The java program should Send/Receive messages to the Server Queue through the local MQ Client.
How, can I achieve this?