Peter,  Other's responses have said that I can't get the MQMD data in a
security exit but you have stated that I can by accessing the MQXQH-MsgDesc
data in the AgentBuffer. I don't know who is correct but I am going with
your suggestions simply because I want you to be right.

I have been trying your approach and no success yet.  I did get my code
cleaned up enough to stop getting 2059's (I assume I was failing in the
exit) and now I get 2035's which to me says the exit is not failing
anymore, it's just not giving me what I want.  So my next venture is to try
to write the MsgDesc data to a file and look at the contents.   Being that
it is 3:00 PM and I need to pick up the turkey, the beer, and a tomato then
get home and make pies and clean the house and whatever else is on my
honey-do list, I think I will resume testing on Monday.

Happy Thanksgiving to those who celebrate.
Thanks to those who have responded so far.


_________________________
Regards,
Dick Killian
MQ Administrator & Adabas DBA
Rochester Gas & Electric Corp
(585) 771-6049



                      Peter Cradwick
                      <peter.d.cradwick        To:       [EMAIL PROTECTED]
                      @GSK.COM>                cc:
                      Sent by: MQSeries        Subject:  Re: [MQSERIES] Sec Channel 
Exit code
                      List
                      <MQSERIES@AKH-WIE
                      N.AC.AT>


                      11/27/2002 10:05
                      AM
                      Please respond to
                      MQSeries List






Richard,
First, I guess you dropped a 'strcmp' out of the if statement!

What does pmqmd point to? The first structure returned in the
AgentBuffer(parm 5) is the XMIT Header, so if you map this to a PMQXQH as
say pXmit, you can access the mqmd as eg:

pXmit->MsgDesc.ApplIdentityData etc...

Hope this helps!
Peter




                    "Richard
                    Killian"
                    <Dick_Killian@r
                    ge.com>               To:     MQSERIES

                    Sent by:              cc:
                    "MQSeries List"       Subject:     Sec Channel Exit
code
                    <MQSERIES@AKH-W
                    IEN.AC.AT>


                    27-Nov-2002
                    13:44
                    Please respond
                    to "MQSeries
                    List"
                    <MQSERIES@AKH-W
                    IEN.AC.AT>





I am writing a security exit for a SVRCONN channel.

Does anyone out there see something wrong with this code?   It compiles and
links okay.  It just doesn't set the MCA User Id.
I do have access to the MQMD in the security exit don't I.

if ((pmqmd->ApplIdentityData[1,15], "71 - MQ Monitor")==0)
       strcpy(pmqcd->MCAUserIdentifier, "mqprog      ");

_________________________
Regards,
Dick Killian
MQ Administrator & Adabas DBA
Rochester Gas & Electric Corp
(585) 771-6049

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to