ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » How to read from a Message Queue in VB.NET

Post new topic  Reply to topic
 How to read from a Message Queue in VB.NET « View previous topic :: View next topic » 
Author Message
fishlips
PostPosted: Wed Dec 21, 2011 2:49 am    Post subject: How to read from a Message Queue in VB.NET Reply with quote

Apprentice

Joined: 21 Dec 2011
Posts: 36

Hello,

I am very new to MQ, and have been tasked with writing a VB.NET application which remotely connects to a Queue Manager, then reads messages from a queue.

I have a hunch that this will not work, for the following reasons:

1 - The MQ Server is not on the same domain as my development PC
2 - I cannot authenticate to MQ Server with my AD Account (I can only connect by enabling user identification)

The only success I have had so far, is that I've been able to connect to the queue manager using MQ Explorer on my development PC, using some credentials that have been given to me (basically the MQ Administrator account). The credentials were entered in the "User Identification Details" section of Websphere MQ Client.

If I don't check the "Enable user identification" option, I get error AMQ4036 - Access Not Permitted.

Everywhere that I've read so far seems to imply that you don't pass credentials when connecting to an MQ server through the API, so, at a first glance, I cannot see how what I'm trying to do is possible, especially as the MQ Server is not on the same domain. The only way this would work, is if the API can support authentication via "User Identification".

Can anyone offer any guidance with regards to this topic? I suspect that we are going about this the wrong way.

Another thing that I think is worth mentioning, is that I am not the MQ Administrator.

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Dec 21, 2011 2:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Since you are not the MQ Administrator, you should be taking this authorization issue to that person.

In general, the proper way for the MQ Administrator to solve this issue is to provide you with a client certificate and the name of a specific SVRCONN channel on the queue manager. The certificate will then be used to authenticate that it is you and not someone else, and the channel will be configured with a mechanism to authorize you into a known role.

If your MQ Administrator doesn't do this, but instead says you just need to run your code as the right ID, then you should tell the MQ Administrator that their queue managers are completely insecure and you have full administrative access to everything. Because you do...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How to read from a Message Queue in VB.NET
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.