PDA

View Full Version : MQ Adapter How to specify the object queue manager name


clarkperry
05-17-2005, 14:00
Hello All!

I have a problem with the MQ Adapter that I have been trying to resolve for months. Applications send me (wM) messages via MQ and include the reply to queue and reply to queue manager in the MQ message header.

The problem that I'm having is that every queue and queue manager combination must be defined to the local MQ manager and a corresponding MQ Adapter connection defined. This is a lot of work both from both the MQ Manager and wM MQ Adapter administration perspectives.

Instead I would like to override the queue name and queue manager name at runtime. There is a field to override the queue name on the MQ adapter (that I created in Developer) but there is not a field to override the queue manager name.

Note that the queue manager name I want to override is the object queue manager name specified in the MQ open and not the queue manager name specified in the MQ connect.

I have been able to write and test a java service that correctly handles this situation. However, I would like to use the MQ Adapter so that I can utilize pooling, listeners, notifications, etc.

Any help is greatly appreciated!

puneetsaxena
05-18-2005, 07:32
Hi Clark Perry,
Which MQ Adapter Version you are using?

In WebSphere MQ Adapter 6.0 at run time you can override a connection in the adapter service by using the overrideConnection property in the Developer’s Pipeline Editor. The overrideConnection property contains object properties that allow you to override the adapter service’s current connection.

For more you can refer : "WmWebSphereMQAdapterUsersGuide.pdf" page no. 175.

Regards,
Puneet Saxena

clarkperry
05-18-2005, 10:01
Thanks Puneet for your reply.

The problem with overriding a connection in the adapter service at runtime is that the overrideConnection/queueManagerName overrides the queue manager that you are connected to and not the queue manager who owns the queue.

If I get a message from a application that contains a reply to queue and reply to queue manager I need to send the reply through my local MQ manager. I don't want to connect to the reply to queue manager in order to send the message.

Using overrideConnection/queueName I can override the queue at runtime but I need to find a way to specify the queue manager too.

Thanks,
Clark

clarkperry
05-18-2005, 10:06
I forgot to mention that we are running MQ Adapter 6.0 on IS 6.1.

Thanks,
Clark

rvasisht
07-19-2005, 11:31
Hi Clark - Have you looked at the pub.art.service:setAdapterServiceNodeConnection which lets you change the adapter service's connection at design time? I have used this service successfully in conjunction with JDBC Adapter services, but the same should apply to the MQ Adapter 6.0.

There is a small section describing this approach on pg. 61 of the MQ Adapter user guide.

HTH,
Rajesh

clarkperry
07-19-2005, 12:58
Thanks Rajesh for taking a look at this. The pub.art.service:setAdapterServiceNodeConnection overrides the MQ manager that I'm connected to. In this case I don't want to override the connection but the object MQ manger.

I want to connect to my local MQ manager but put to a remote queue on a different MQ manager. The webMethods MQ adapter allows you to specify the queue name but not the MQ manager that owns the queue.

Using java I was able to write a simple program to test this problem. I connected to the local queue manager but opened a queue on a remote MQ manager. MQ supports this but apparently the webMethods MQ adapter does not.

To resolve this problem I had to define the remote queue to the local MQ manager.