|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Programming languages for coding Exits for MQ series |
« View previous topic :: View next topic » |
Author |
Message
|
yogibear |
Posted: Wed Oct 21, 2009 4:49 am Post subject: Programming languages for coding Exits for MQ series |
|
|
Newbie
Joined: 21 Oct 2009 Posts: 1
|
Hi, I am new to MQ exits.
Per my understanding Exits can be coding only in C (and maybe in C++ as well). This is because MQ software itself is coded in C.
I wanted to know if any other programming languages can be used to code MQ exits such as Java,.Net etc?
lets say if it is possible to code MQ exits is Java, is it any better than Exit coded in C ?(C code is supposed to run faster) |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 21, 2009 5:16 am Post subject: Re: Programming languages for coding Exits for MQ series |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
yogibear wrote: |
I wanted to know if any other programming languages can be used to code MQ exits such as Java,.Net etc? |
No. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Oct 21, 2009 3:13 pm Post subject: Re: Programming languages for coding Exits for MQ series |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
yogibear wrote: |
Hi, I am new to MQ exits.
Per my understanding Exits can be coding only in C (and maybe in C++ as well). This is because MQ software itself is coded in C.
I wanted to know if any other programming languages can be used to code MQ exits such as Java,.Net etc?
lets say if it is possible to code MQ exits is Java, is it any better than Exit coded in C ?(C code is supposed to run faster) |
Exits can be coded in Java, but they are limited to only run on Client channels under the Java MQ Classes. eg. they can be used in MQ Explorer.
Exits can be written in assembler on z/OS. (yuk)
C is by far the best choice for general MQ exits, as the same source code can be used on a range of platforms.
There are sample exits available written in C, eg. AMQSQRMA.C, AMQSSPIN.C, AMQSXRMA.C.
As has been said many times on this forum, MQ exit programming is an advanced topic. Are you thinking of writing an exit? _________________ Glenn |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 21, 2009 4:55 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Exits can be written in any language.
That you are willing to hand-code a C-language binding to, for example a JNI interface or by embedding a Perl interpreter and using XS.
Or whatever yon strange beastie is required by such silly languages as Python, JavaScript or PHP.
But, you know, almost certainly far too much work for what you want, far too fragile, and far too complicated.
Just ignore MQ exits entirely.
Restate your *business requirements* and we'll tell you how to solve them *sensibly*. |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Oct 22, 2009 2:58 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
mqjeff wrote: |
Exits can be written in any language.
That you are willing to hand-code a C-language binding to, for example a JNI interface or by embedding a Perl interpreter and using XS.
Or whatever yon strange beastie is required by such silly languages as Python, JavaScript or PHP.
But, you know, almost certainly far too much work for what you want, far too fragile, and far too complicated.
Just ignore MQ exits entirely. |
Sound advice! I always wanted to write an exit in LISP or SNOBOL or FORTH, but I'm not really into self flagellation.
Quote: |
Restate your *business requirements* and we'll tell you how to solve them *sensibly*. |
 _________________ Glenn |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|