|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Exits in MQ using Java |
« View previous topic :: View next topic » |
Author |
Message
|
amigupta1978 |
Posted: Tue Jan 29, 2002 9:33 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
Hi,
Can somebody provide me any help on writing channel exits using JAVA, I have got some sample in the IBM redbook but I am unable to invoke the exit program. I am using MQSeries 5.2 on WINNT. When I specify the program name (in the Send Exit) in the Exits Tab (say I give the name x) of the MQSeries explorer and try to send any message an application log is created saying x.dll is not found in the directory. Does it means that I can only write exits if I am using the dll files. Can anybody provide some help and if possible can u give some sample code and pls tell how to invoke my program on exit.
Thanks in Advance
Amit |
|
Back to top |
|
 |
kolban |
Posted: Tue Jan 29, 2002 9:37 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
You can only write server side exits in a language which will produce a DLL format loadable image. Typically, this is not java unless you wrap in some form of JNI calls ... I don't recommend this. On Java clients, you can write client side exits.
Typically C or C++ is used to create DLL's for the Server Side or Unix shared libraries if the server is Unix based. |
|
Back to top |
|
 |
kthompson |
Posted: Thu Jan 31, 2002 7:49 am Post subject: |
|
|
Novice
Joined: 18 Nov 2001 Posts: 10
|
I was having the same problem...
Is it possible to write C code to wrap a system() call to java, and load the exits? Is yes, does someone have a sample? I would prefer not to dust off my C books, unless I have to. Basically, I really don't want to introduce another language to our development group that primarily use Java.
Thanks. |
|
Back to top |
|
 |
mpuetz |
Posted: Mon Feb 04, 2002 10:16 am Post subject: |
|
|
Centurion
Joined: 05 Jul 2001 Posts: 149 Location: IBM/Central WebSphere Services
|
Hi,
writing a server-side exit is currently only supported in
C/C++ on most platforms. Java is only supported in client side
exits. There you must implement one of the MQChannelExit
interfaces.
Well in principle you *could* work around that restriction
by doing a language-neutral call of a Java-Service from a C-ChannelExit-stub,
but I think that's probably more pain than it is worth.
_________________
Mathias Puetz
IBM/Central WebSphere Services
MQ/WMQI Specialist
[ This Message was edited by: mpuetz on 2002-02-04 10:17 ] |
|
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
|
|
|
|