Author |
Message
|
Dj_Spacer |
Posted: Wed Feb 06, 2008 3:48 am Post subject: C# + WebSphere MQ 6.0 |
|
|
Novice
Joined: 24 Dec 2007 Posts: 10 Location: RUSSIA,MOSCOW
|
We have following problem :
our program on C# need to use login to MQ different from the system one.
We tried to use managed client mode but it takes system user name instead of MQEnvironment.UserId
(we enable managed mode by
MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES_MANAGED); )
We tried to start our program on computer without MQ client to be sure that Managed mode is working.
Yes it works but takes system user name instead of MQEnvironment.UserId.
Anybody can help ? _________________ Еxcuse me my English is not good. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 06, 2008 3:51 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Make your userid part of an authorized group on the MQServer...
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 06, 2008 3:53 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Or put an MCAUSER on the channel.
It's not clear to me if this is working as designed or not. I don't know if Managed Client Connections are supposed to allow you to override the system user or not.
I know regular client connections are not supposed to let you do this. So this is working the same as the regular client - but again, I don't know if this is by design or not. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Dj_Spacer |
Posted: Wed Feb 06, 2008 4:14 am Post subject: |
|
|
Novice
Joined: 24 Dec 2007 Posts: 10 Location: RUSSIA,MOSCOW
|
jefflowrey wrote: |
Or put an MCAUSER on the channel.
It's not clear to me if this is working as designed or not. I don't know if Managed Client Connections are supposed to allow you to override the system user or not.
I know regular client connections are not supposed to let you do this. So this is working the same as the regular client - but again, I don't know if this is by design or not. |
In .net mq api there are properties -
MQEnvironment.UserId and
MQEnvironment.Password
How we can use them ?
I thought that managed connection should use them instead of system user login. Is this true ? If not, Is there any way to override system user ? _________________ Еxcuse me my English is not good. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 06, 2008 4:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
jefflowrey wrote: |
It's not clear to me if this is working as designed or not. I don't know if Managed Client Connections are supposed to allow you to override the system user or not.
I know regular client connections are not supposed to let you do this. So this is working the same as the regular client - but again, I don't know if this is by design or not. |
_________________ MQ & Broker admin |
|
Back to top |
|
 |
|