I am trying to make use of the MQSeries adaptor and have run into a couple of issues/questions, anybody using MQ and seen these?
Using a listener handler, I want my messages to be processed concurrently (i.e. multi threaded) on the IS. How do I do this? out of the box the messages are processed 1 by 1.
If I disable my listener handler then the handler continues to be called as messages are put onto the queue. This is after a message has been received and the shutdown timeout has expired. If I delete the handler from the IS, then this makes no difference either. In fact, the only way to stop this handler seems to be a restart of the IS.
we use MQSeries adapter 2.0 with IS4.0 and the way we handled multi-threading with MQ messages in two ways. One way is to create multiple listers for the same queue - this gives you a nice way to control how many threads you allow.
Another way is to create a java service which uses Service.doThreadInvoke service to invoke the final service. The problem with this is you have no control on how many threads start, if you have 1000 messages on the queue, then 1000 threads will start at just about the same time and process each message independently.
I just tried upgrading the IS to 6.0.1 but no improvement
Your first suggestions is how I expect the listen handler to work - unfortunately it doesn’t for me - I’ll explain what I have done. I have generated 2 listener handlers called listen_a and listen_b. Both listeners call a common service, called myRouter, which calls other services based on the message content. When I feed my messages into the MQ I can see then being read by the listener 1 by 1.
I understand your second suggestion but I need to research the doInvokeThread service a little further. However at first glance it seems that this is not how one should be working within WM.
Personally, I wanted to be prompted for how many threads should be permitted to handle messages
when I created the listener handler. After all there are plenty of occasions when you need to deal with messages 1 by 1 as well as concurrently.
If I can get solution 1 working then this will be fine, and I shall be a happy man.
I’m actually quite surprised to hear that anyone is using the webSphereMQ adapter for Integration Server with any degree of success. We tried it out here, and it was so horrendously buggy that we had to revert to using the Enterprise MQ Adapter. I just recently received a boatload of fixes and patches from webMethods for it, as we escalated the issue through our webMethods System Engineer. I have yet to try to them, but hopefully it will fix some of the problems and prove to be more stable than previous versions…
We had problems with our listen operations as well. Sometimes they would work, sometimes they didn’t. Lots of intermittent problems, inconsistencies, and things like that really scared us off from using the webSphereMQ adapter. At least the Enterprise version behaves consistently…
Michael - webMethods recently sent us Service Pack 2 and Fixes 1-4. I think Service Pack 2 encompasses all of the fixes in Service Pack 1. Sounds like Service Pack 2 didn’t do a lot for you. Have you tried Fixes 1-4?
I am hoping to apply these fixes and test them out some time today or next week. I’ll let you know if I see any improvements. It might take some time to get everything setup again, as we totally scrapped the webSphere MQ Adapter and un-installed it on our servers.
I’ll let you know if I see improvements after testing with all of the fixes…
Hi, guys. We use MQ Adapter 2.1 on BC 4.0.1 and I tried more than one listener and it seemed to work. One of the thing to consider is whether your service is Transactional or not. If it is transactional than the listener will probably lock the queue until after commit issued by your message service. If it is not transactional then message will be taken from the queue instantly but you would loose MQ Assured delivery.
We are facing one unique problem of loosing our Msg Handler Services(Get and Put) after the Server is rebooted. Though we can see the service in the Developer but it
is not there in webSphere MQ Adapter Console .
We need to always recreate the MsgHandler service once
the server is started
Please let us know if anyone you faced a similar problem or any workaround …
—WebShpere MQ Adapter version -3.0
(Applied SP2and SP3, Fixes( 1 to 6)
I am just now installing the MQ adapter for MQ 5.3 , I am trying to download j2ee.jar from sun’s website and having a hard time finding it , can somebody give the actual url.
Thanks
I tried downloading j2ee 1.4 from SUN’s site but my install never quite worked right. I planned to try again using 1.3 but have not done it yet. Here is a URL. http://java.sun.com/j2ee/1.3/download.html#