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 Index » User Exits » Programming languages for coding Exits for MQ series

Post new topic  Reply to topic
 Programming languages for coding Exits for MQ series « View previous topic :: View next topic » 
Author Message
yogibear
PostPosted: Wed Oct 21, 2009 4:49 am    Post subject: Programming languages for coding Exits for MQ series Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Oct 21, 2009 5:16 am    Post subject: Re: Programming languages for coding Exits for MQ series Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Wed Oct 21, 2009 3:13 pm    Post subject: Re: Programming languages for coding Exits for MQ series Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
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
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 21, 2009 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Oct 22, 2009 2:58 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » User Exits » Programming languages for coding Exits for MQ series
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.