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 can you change client id in

Post new topic  Reply to topic
 How can you change client id in « View previous topic :: View next topic » 
Author Message
slsharks
PostPosted: Fri Oct 03, 2008 6:37 am    Post subject: How can you change client id in Reply with quote

Newbie

Joined: 02 Oct 2008
Posts: 1

I have a java application running on my local desktop, by using JMS API connect to a Remote MQ server (version 6), client/tcp ip mode,when connect to queue manager I can supply a client id "mqrun" and everything works fine. I do not even need supply a password.

Now we need develop a dot NET app doing almost the same thing as that JAVA app, by using XMS net, but it seems when create a connection through Connection Factory, it always using my maching login account "shark" as the client id and throw an CWSMQ0044E error, I have following statement :

connectionFactory.SetStringProperty(XMSC.CLIENT_ID, "mqrun");

but seems not working.

is there anyway to change that client id?

Or is there any other setting I need to do to make XMS behavor the same way as JMS?

(On the same maching, java works but dot NET not)

Thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 03, 2008 2:11 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You have to look at how XMS and java/JMS run behind the scenes.
I believe that XMS takes advantage of the (unmanaged) C client behind the scenes. This means that it will pickup the userid you are running under.
Java can't do that because the function is not the same across the different OS platforms...

If you want to force a userid look at the mcauser parm on the channel.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How can you change client id in
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.