JMS pub/sub with MQ server

Hi Friends,

I have an MQ server setup on win2000 machine and is working fine with both point-point and pub/sub with programs running on the local machine. I am not using JNDI.

My problem is I have publisher running on the same machine as the MQ server. I am trying to subscribe from a remote machine, but I am getting error 2058 which means cannot locate the Q manager. The Q manager is up and running and a subscriber running on the local machine can get the published messages.

Can any one explain if I have to do any configurations on the MQ server or the client to get things running. What are these channels what is their role in remote communication? Do channels mean any thing in pub/sub messaging?

We have been trying hard for a full day trying to figure this out and would be very thankful to anyone who provides a good answer.

Thanks guys,

Ram,

Sabre Inc.

[931 byte] By [m_ansram] at [2007-9-26 3:41:40]
# 1

I don't have the setupp right now to try it out, but you might need to setup some of these properties on the MQConnectionFactory object

setChannel(String)

Your channel name

setHostName(String)

Name or IP address of host running the QM

setPort(int)

(I think 1414) - you might not need to set this up as it can use the default

setQueueManager(String)

QM of course

setTransportType(int)

JMSC.MQJMS_TP_CLIENT_MQ_TCPIP.

Hopefully that should do it

shirish_wagh at 2007-6-29 12:18:29 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

> I don't have the setupp right now to try it out, but

> you might need to setup some of these properties on

> the MQConnectionFactory object

>

> setChannel(String)

> Your channel name

This should be a Server Connection Channel

> setHostName(String)

> Name or IP address of host running the QM

> setPort(int)

> (I think 1414) - you might not need to set this up as

> it can use the default

141 is the default. If you have more than one Queue Manager it may be listening on a different port.

AlasdairN at 2007-6-29 12:18:29 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...