Author |
Message
|
teal |
Posted: Mon Jul 11, 2005 12:00 pm Post subject: userid on sent MQ message |
|
|
 Acolyte
Joined: 15 Dec 2004 Posts: 66
|
trivial question, but I would like to know. An application is sending messages over from a websphereApplication server to an iSeries box. everything looks good when i look at the messages but I noticed it has my userid in that field on the as400 menu after I choose work with messages on the reply queue. I am not sending these messages myself..
why does my ID show in that field, shouldn't it be the Websphere or Java? what determines this? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 11, 2005 12:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you per chance using a channel with a specified mcauser ?
 |
|
Back to top |
|
 |
teal |
Posted: Mon Jul 11, 2005 12:09 pm Post subject: |
|
|
 Acolyte
Joined: 15 Dec 2004 Posts: 66
|
good question, but no it is blank. I didnt create the channels etc with my ID. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 11, 2005 12:24 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Remember the user id is fine. It is because you are running the process that authenticates to WebSphere MQ in the app server (Java/JMS)
It is the ApplicationID that will show Websphere Java
Enjoy  |
|
Back to top |
|
 |
teal |
Posted: Mon Jul 11, 2005 12:37 pm Post subject: |
|
|
 Acolyte
Joined: 15 Dec 2004 Posts: 66
|
that makes sense. The ApplicationID is exactly as you said. So how would change the USERID? what process is it? WMQ itself that is connected to WAS?
thanks again |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 11, 2005 6:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Depending a few things assuming a blank MCAUSER:
a) if in bindings
The userid is that of the process running WAS or of the JAAS JMS authentication alias (if you set one up)
b) if in client mode
The userid is that of the JAAS authentication Alias, or the one passed with the createConnection method of the QCF/TCF.
Code: |
qcf.createConnection(String userid, String passwd) |
Enjoy  |
|
Back to top |
|
 |
vinodsasidharan |
Posted: Tue Jul 12, 2005 8:14 am Post subject: MQPMO_IDENTITY_CONTEXT |
|
|
 Apprentice
Joined: 25 Apr 2003 Posts: 47 Location: Norwich
|
To add to the thread abt Userid .
Userid is a part of the identity context and it can be set by an application to a value by using the MQPMO_SET_ALL_CONTEXT or MQPMO_IDENTITY_CONTEXT option in the Mq program .
And if it is not set by the application then as Saper said it is set based on client or bindings . _________________ Vinod sasidharan
Ibm Certfied MQ Admin 5.3
Ibm Certfied MQ Admin 6.0
Ibm Certfied WAS Admin 6.0
Ibm Certfied WMB Admin 5.0
Ibm Certfied Db2 Specialist.
Sun certified Java Programmer.
"Ai carte, ai parte ....................." |
|
Back to top |
|
 |
|