|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
User-id used for cilent connections ?? |
« View previous topic :: View next topic » |
Author |
Message
|
euphoria |
Posted: Mon Oct 10, 2005 6:03 am Post subject: User-id used for cilent connections ?? |
|
|
Acolyte
Joined: 08 Feb 2004 Posts: 51
|
One of our developers wrote an application using MQ java api and was able to connect to Queuemanager and get messages from queues. However, No autorities were given to the queue. except mqm, user no one can open or get messages from the queue.
How could the application connect to the queue manager and open queue without proper authorities..?
If we use java api calls, what user id does the program connects to the queue manager and opens the queue ?
Following is code fragment that opens the queue
*********************
MQEnvironment.port = INPUT_QUEUE_PORTNUMBER;
MQEnvironment.hostname = INPUT_QUEUE_HOSTNAME;
MQEnvironment.channel = INPUT_QUEUE_CHANNEL;
m_oMQQueueManager = new MQQueueManager(INPUT_QUEUE_MANAGER);
l_iOpenOptions = MQC.MQOO_INPUT_SHARED ;
m_oQueue = m_oMQQueueManager.accessQueue( INPUT_QUEUE_NAME, l_iOpenOptions, null, null, null);
************************ |
|
Back to top |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 8:38 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
My guess would be that you are connecting with MQ Client - that is, somewhere there's a SVRCONN waiting for your call; most probably, you had configured MCAUSER(mqm) on the said channel.
To understand why this has the effect you described, you should read the Security and Clients manuals, and search this forum (this is a *very* frequent question); for example, when I searched for "client channel authorization" I found security and clients and many other relevant posts.
Enjoy 
Last edited by hopsala on Mon Oct 10, 2005 8:40 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Oct 10, 2005 8:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Actually, the Java API is the only one that does not set the user id based on the logged in user. It can't, for technical reasons.
Therefore, it by default sets the userid to null. Which unfortunately, mq treats as "mqm". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
euphoria |
Posted: Mon Oct 10, 2005 11:14 am Post subject: |
|
|
Acolyte
Joined: 08 Feb 2004 Posts: 51
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|