|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Languages supported for MQ exits |
« View previous topic :: View next topic » |
Author |
Message
|
crossland |
Posted: Tue Jun 21, 2011 5:12 am Post subject: Languages supported for MQ exits |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Jun 21, 2011 5:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
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 |
|
 |
crossland |
Posted: Tue Jun 21, 2011 6:20 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
Thanks, mqjeff.
Hopefully this will be added to the documentation one day ... |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 21, 2011 6:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
crossland wrote: |
Thanks, mqjeff.
Hopefully this will be added to the documentation one day ... |
There is a handy "feedback" button. |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Jun 21, 2011 5:42 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
|
|
 |
|
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
|
|
|
|