Thorbjørn, to your question here's a knee-jerk answer. JTOpen providesI am weary of data queues as I don't like that the permissions have moved from "only within this process" to "whoever can write the queue", but perhaps message queues can do it.
access to both data queues (which many here seem to prefer) and messaging
(native AS/400, not JMS,) which I generally use. Either can be used to
communicate with the CL program in the same way you might with RPG, COBOL,
or any other program. You could send back different exit codes to indicate
conditions to be checked, or just rely on messaging altogether. If you want
a nearly WORA on the Java side, you could use JMS in Java, with an adapter
(hence "nearly") to get it to the data or message queue. That's the
technique Mule uses (or used to use; I haven't looked at it for a while.)
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.