Posted: Wed Jun 04, 2003 10:28 am Post subject: MQ triggering Java & RPG on AS/400
Novice
Joined: 09 Aug 2001 Posts: 23 Location: New Jersey
We are struggling a bit with how to best have MQ trigger on AS400 platform (we are new to AS400, have used MQ a lot in AIX). If anyone can relate what they've done, would sure appreciate it.
Here's what I got :
When data arrives at a queue on the 400, I need to run a java pgm to get the data from the queue and put it in a file, then run an RPG pgm to read the file and load the data into the target application.
We first built a QShell script (which contain commands to run the java pgm and then the rpg pgm) but have been unable to get MQ to trigger the QShell.
My guys now think we will have to have MQ trigger a second rpg pgm. This second rpg pgm will invoke the QShell script.
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
I am not too much of an iSeries guy but this is how we have done triggering if it has to trigger a java program.
Call the java program from a CL program.
In a CL program, if you call a java program, it will invoke QShell and then the java program will run under the QShell. It was so slow that we went on to write C programs. I am not sure if you can trigger a QShell script.
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