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 IndexUser ExitsLanguages supported for MQ exits

Post new topicReply to topic
Languages supported for MQ exits View previous topic :: View next topic
Author Message
crossland
PostPosted: Tue Jun 21, 2011 5:12 am Post subject: Languages supported for MQ exits Reply with quote

Master

Joined: 26 Jun 2001
Posts: 248

From the MQ Manuals:

Quote:
When writing channel exits for z/OS, the following rules apply:

Exits must be written in assembler or C


Quote:
WebSphere MQ for i5/OS

The exit is a program object written in the ILE C, ILE RPG, or ILE COBOL language.


Quote:
WebSphere MQ for Windows server, WebSphere MQ client for Windows

The exit is a DLL that must be written in C


Quote:
Writing channel exit programs for WebSphere MQ for AIX

Note: Before you use an existing user exit for the first time on WebSphere MQ for AIX, you must recompile it to enable it to take advantage of thread-safe system calls. If your user exits use thread-unsafe system calls, you will need to modify them before using them on this platform.

The exit is a dynamically loaded object that must be written in C.

(same for Solaris, HP-UX and Linux)

And now for something completely different:

Quote:
You create channel exits by defining Java classes that implement specified interfaces.


As the manual does not state it (or at least I couldn't see it!), are the Java channel exits only to be used by Java clients, or can a Java channel exit be deployed on a queue manager?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 21, 2011 5:16 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17448

There is no JVM inside the queue manager, therefore there is nothing to actually run Java code.

So, yes, you can write a C exit that uses JNI to call a Java exit in the JVM of your choosing and deploy that to the queue manager.

But otherwise, no.
Back to top
View user's profile Send private message
crossland
PostPosted: Tue Jun 21, 2011 6:20 am Post subject: Reply with quote

Master

Joined: 26 Jun 2001
Posts: 248

Thanks, mqjeff.

Hopefully this will be added to the documentation one day ...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 21, 2011 6:22 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17448

crossland wrote:
Thanks, mqjeff.

Hopefully this will be added to the documentation one day ...


There is a handy "feedback" button.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Jun 21, 2011 5:42 pm Post subject: Reply with quote

Padawan

Joined: 25 Mar 2003
Posts: 1732
Location: Melbourne, Australia

Quote:
And now for something completely different:

Quote:
You create channel exits by defining Java classes that implement specified interfaces.

As the manual does not state it (or at least I couldn't see it!), are the Java channel exits only to be used by Java clients, or can a Java channel exit be deployed on a queue manager?


AFAIK, MQ exits written in Java can only currently be used by Java classes which expose the exit interfaces, and this limits their usage to client apps (including MQ Explorer), and they can't (easily) be used by MQ Server internal processes (which are not written in Java).

If portability is required, write in C !
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexUser ExitsLanguages supported for MQ exits
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.