Author |
Message
|
9A5YY |
Posted: Thu Feb 14, 2019 11:57 pm Post subject: EGL and MQ |
|
|
Voyager
Joined: 27 Sep 2005 Posts: 99 Location: Croatia
|
Hello!
Does anybody have any experience with EGL and MQ? I need EGL program sample for my colleagues which connects to the MQ server as MQ client using IP address, port, server connection channel and queue manager name. |
|
Back to top |
|
 |
hughson |
Posted: Fri Feb 15, 2019 12:11 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
I am not familiar with the acronym EGL, so I googled it. It wasn't obvious to me even then what it was you were referring to. Might it be this?
EGL (API)
If not, please could you elaborate further on what EGL is so we can try to help.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
9A5YY |
Posted: Fri Feb 15, 2019 12:52 am Post subject: |
|
|
Voyager
Joined: 27 Sep 2005 Posts: 99 Location: Croatia
|
|
Back to top |
|
 |
hughson |
Posted: Fri Feb 15, 2019 1:17 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
So EGL means Enterprise Generation Language.
I went to the link you provided in the Rational product Knowledge Center, and typed MQ into the search bar.
It appears to have a section about working with MQ.
WebSphere MQ message queues
I found this page which might be what you need.
Connecting to WebSphere MQ over TCP/IP
I learned that:-
IBM Knowledge Center wrote: |
EGL supports calls to WebSphere MQ message queues in two ways:- You can use EGL-specific keywords like add and get next. In this case EGL handles all the details of generating WebSphere MQ API calls.
- You can write WebSphere MQ API calls directly, to support older programs.
|
Are you looking for help with EGL-specific keywords or the direct MQ API calls (which are not supposed to be used for newly written applications it says).
Is this what you need or do you already know how to do this and want specific help? If the latter, can you show us what you have already. If you already have an EGL program and need to add client connectivity to it, perhaps it would be easier for MQ experts who are not EGL experts to assist if they can see what you have so far.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
9A5YY |
Posted: Fri Feb 15, 2019 1:56 am Post subject: |
|
|
Voyager
Joined: 27 Sep 2005 Posts: 99 Location: Croatia
|
|
Back to top |
|
 |
mdevb |
Posted: Sat Feb 16, 2019 9:01 pm Post subject: |
|
|
Newbie
Joined: 16 Feb 2019 Posts: 1
|
Hi,
You can also post EGL related questions to the EGL Forum (search the internet to get the link). There is an EGL community that may be able to help.
Dev Banerjee |
|
Back to top |
|
 |
9A5YY |
Posted: Tue Feb 19, 2019 12:38 am Post subject: |
|
|
Voyager
Joined: 27 Sep 2005 Posts: 99 Location: Croatia
|
Hello!
https://www.ibm.com/support/knowledgecenter/en/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_mq_tcp_tsk.html
I read the link above about connecting EGL program to MQ over TCPIP and wanted to adopt current EGL code we have. We don't have idea how to do it. We migrated EGL batches from z/OS to AIX. At z/OS EGL batches were located locally at MQ server. At AIX it's different. We would like to adopt it to connect to remote MQ server over TCPIP. Part of EGL program which we would like to change it is here and it works fine at z/OS:
// Call "elaqconn"(MQWS1_Level77Items.name, MQWS1_Level77Items., MQWS1_Level77Items.COMPCODE, MQWS1_Level77Items.REASON) {isExternal = yes};
com.ibm.javart.util.JavartUtil.checkForMQ( ezeProgram );
com.ibm.javart.mq.MQDirectCall.ELAQCONN( ezeProgram,
ezeProgram.MQWS1_005fLevel77Items.NAME,
ezeProgram.MQWS1_005fLevel77Items.HCONN,
ezeProgram.MQWS1_005fLevel77Items.COMPCODE,
ezeProgram.MQWS1_005fLevel77Items.REASON
);
This part of EGL program it's used to connect only to the qmgr NAME.
We would like to connect EGL program to the MQ server as MQ client using IP address, port, server connection channel and queue manager name. |
|
Back to top |
|
 |
hughson |
Posted: Wed Feb 20, 2019 12:53 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Are you sure ELAQCONN is an EGL interface to MQ and not a wrapper? Only hits on a web search suggest it is a 1995 Ezebridge OS/2 wrapper which can't be what you are using, so perhaps you have another source file that actually contains the EGL calls?
From your code snippet, it does suggest that it is a wrapper for MQCONN, so unless you want to change over to MQCONNX, you need to be able to setup connectivity details environmentally.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
9A5YY |
Posted: Wed Feb 20, 2019 1:59 am Post subject: |
|
|
Voyager
Joined: 27 Sep 2005 Posts: 99 Location: Croatia
|
Hello!
I have got good news for you.
Meanwhile we solved problem using link you sent to me.
We added this before ELAQCONN:
ExternalType MQEnvironment type JavaObject { packageName = "com.ibm.mq" }
static hostname string;
static port int;
static channel string;
end
function beforeConnectingToMQ()
MQEnvironment.hostname = "IP address";
MQEnvironment.port = qmgr port;
MQEnvironment.channel = "SRVCONN channel name";
end
Thanks for help!
Best regards and wishes |
|
Back to top |
|
 |
hughson |
Posted: Wed Feb 20, 2019 4:36 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Glad to hear you are all sorted.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
|