Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMQ9536E: Channel ended by an exit. #15

Open
leondelange123 opened this issue Jul 25, 2024 · 3 comments
Open

AMQ9536E: Channel ended by an exit. #15

leondelange123 opened this issue Jul 25, 2024 · 3 comments

Comments

@leondelange123
Copy link

leondelange123 commented Jul 25, 2024

Hi,

I have setup and have tried a number of things now and still its not working.

Can you confirm if this exit works with Keycloak ver 25.0.0 and MQ 9.4.0 on Linux HREL 8 ?

If I do the curl command to my keycloak server I get tokens back.
If I try the sample as suggested I can get it working until I add the exit like this... and then its starts failing.

DEFINE CHANNEL(ADM.SVRCONN2) CHLTYPE(CLNTCONN) CONNAME(
'zapsdcrapp3276.corp.dsarena.com(1420)') QMNAME(FILEBPRD01) SCYEXIT('extjwtexit(ChlExit)') SCYDATA(DEBUG)

Also no DEBUG info which makes this almost unusable as there isnt any proper errors.

[mqm@server3276 ssl]$ export JWT_TOKEN_USERNAME=xxxxxxxx
[mqm@server3276 ssl]$ export JWT_TOKEN_PWD=xxxxxxxx
[mqm@server3276 ssl]$ export JWT_TOKEN_CLIENTID=eJgX2xoNwFIhJLo1O2LQsUf8rFZeXMEb
[mqm@server3276 ssl]$ export MQSERVER="ADM.SVRCONN2/TCP/10.11.12.13(1420)"
[mqm@server3276 ssl]$ export MQSERVER="ADM.SVRCONN2/TCP/10.11.12.13(1420)"
[mqm@server3276 ssl]$ /apps/MQ940/MQServer/samp/bin/amqsputc Q2 FILEBPRD01
Sample AMQSPUT0 start
MQCONNX ended with reason code 2538

** If I remove ONLY the exit "extjwtexit(ChlExit)" from the channel it all works just fine. I can connect and put messages to the queue **

07/25/2024 05:42:19 PM - Process(1951211.12) User(mqm) Program(amqrmppa)
Host(server3276.corp.dsarena.com) Installation(Installation2)
VRMF(9.4.0.0) QMgr(FILEBPRD01)
Time(2024-07-25T15:42:19.399Z)
CommentInsert1(ADM.SVRCONN2)
CommentInsert2(extjwtexit(ChlExit))

AMQ9536E: Channel ended by an exit.

EXPLANATION:
Channel program 'ADM.SVRCONN2' was ended by exit 'extjwtexit(ChlExit)'.
ACTION:
None.

Any help would be appreciated as I cannot be the only one out there trying this :-)

@ibmmqmet
Copy link
Collaborator

Why are you using MQSERVER environment variable? The README shows how you point at the CCDT where the CLNTCONN is defined to use the exit. The error message reads like that you've actually set the exit on the SVRCONN end

@leondelange123
Copy link
Author

leondelange123 commented Jul 30, 2024 via email

@ibmmqmet
Copy link
Collaborator

I cannot comment on any future plans here.

If you don't want to use CCDTs, then you can - of course - rework you applications to essentially embed the same logic. Some samples for other languages already do that. But the CCDT (or app programming) is needed for any TLS communication to the qmgr as you can't do that entirely with environment variables.

And there's no restriction on password lengths provided your app is using the MQCSP structure. Maybe mixing it up with the 12-char restriction on userids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants