Posted: Mon Feb 02, 2004 6:05 am Post subject: Testing using a local MQ 5.3 Client and a Remote QM
Apprentice
Joined: 12 Nov 2002 Posts: 25
Hi
I am developing using java on my desktop.
We used to have the full version of MQ on our desktop to allow us to test with local QMs. This has now been withdrawn and we have to use MQ Client and use a remote QM for testing.
How is this done? My search for info so far is going very slowly.
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
Just add the following to your java app.
MQEnvironment.properties.put(MQC.HOST_NAME_PROPERTY, "XXX.XXX.XXX.XXX");
MQEnvironment.properties.put(MQC.CHANNEL_PROPERTY, "<Svrconn channel name>");
MQEnvironment.properties.put(MQC.PORT_PROPERTY, new Integer(<port listener is running on>));
MQEnvironment.properties.put( MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT );
Make sure you define a Svrconn channel on the remote system where your queue manager is running. Also start the listener on the same port that you mentioned in your app as in above snippet.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum