ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ API SupportEGL and MQ

Post new topicReply to topic
EGL and MQ View previous topic :: View next topic
Author Message
9A5YY
PostPosted: Thu Feb 14, 2019 11:57 pm Post subject: EGL and MQ Reply with quote

Voyager

Joined: 27 Sep 2005
Posts: 93
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
View user's profile Send private message
hughson
PostPosted: Fri Feb 15, 2019 12:11 am Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
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
View user's profile Send private message Visit poster's website
9A5YY
PostPosted: Fri Feb 15, 2019 12:52 am Post subject: Reply with quote

Voyager

Joined: 27 Sep 2005
Posts: 93
Location: Croatia

Hello!

Thanks for fast answer.

We use EGL and IBM RBD 9.5. Link of IBM RBD 9.5.1 is here:

https://www.ibm.com/support/knowledgecenter/en/SSMQ79_9.5.1/com.ibm.rational.rbd.product.doc/helpindex_rbd.html
Back to top
View user's profile Send private message
hughson
PostPosted: Fri Feb 15, 2019 1:17 am Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
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
View user's profile Send private message Visit poster's website
9A5YY
PostPosted: Fri Feb 15, 2019 1:56 am Post subject: Reply with quote

Voyager

Joined: 27 Sep 2005
Posts: 93
Location: Croatia

Hello!

Thanks for answer.

https://www.ibm.com/support/knowledgecenter/en/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_mq_tcp_tsk.html

I think this link will be enough for beginning and good starting point to solve
our problem. If we will need more help, I will send you detailed description of problem and messages.
Back to top
View user's profile Send private message
mdevb
PostPosted: Sat Feb 16, 2019 9:01 pm Post subject: Reply with quote

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
View user's profile Send private message
9A5YY
PostPosted: Tue Feb 19, 2019 12:38 am Post subject: Reply with quote

Voyager

Joined: 27 Sep 2005
Posts: 93
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
View user's profile Send private message
hughson
PostPosted: Wed Feb 20, 2019 12:53 am Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
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
View user's profile Send private message Visit poster's website
9A5YY
PostPosted: Wed Feb 20, 2019 1:59 am Post subject: Reply with quote

Voyager

Joined: 27 Sep 2005
Posts: 93
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
View user's profile Send private message
hughson
PostPosted: Wed Feb 20, 2019 4:36 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
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
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportEGL and MQ
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.