• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

java connection to intermediate Websphere queue

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me with java code or advise on how to access queues on an intermediate queue.

Using IBM Websphere MQ Explorer

In order to see the queues of QM_EFL1, I have to set QM_EFL1 up as an intermediate queue that connects through another Queue manager, QM_Broker1.

QM_Broker1 has a different IP and port than QM_EFL1. This way I can access the queues and see the queue depth and all the names of the queues.

Using Java Code

I have a Java app that fetches all the queues for a supplied Queue manager using PCF Agent.

This works perfect for all non intermediate queues but an error

com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2538'

stating that


is returned for the intermediate queues. This is in a way correct as the intermediate queues are in a protected domain that prevents me from setting up a direct connection. Through IBM Websphere MQ Explorer I can connect and manually view the queues.

Does anybody know of a way to change the Java code to connect to a queue manager via another queue manager?
Grow your own food... or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic