|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How can you change client id in |
« View previous topic :: View next topic » |
Author |
Message
|
slsharks |
Posted: Fri Oct 03, 2008 6:37 am Post subject: How can you change client id in |
|
|
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 |
|
 |
fjb_saper |
Posted: Fri Oct 03, 2008 2:11 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|