× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi
I have already done some thing like that to pass messages from QTEMP, create a message queue and pass error messages from RPG to Java.
I call RPG program from Java, this RPG program writes error messages in message queue created in QTEMP library, when the control comes back to Java program i read these error messages from message queue in QTEMP.
So RPG and Java have the same QTEMP.

I reason i want to add some special logic when called from RPG is because we this logic to clear from tables if called from RPG,

A$HI$H


--- On Wed, 12/10/08, Thorbjørn Ravn Andersen <thunderaxiom@xxxxxxxxx> wrote:

From: Thorbjørn Ravn Andersen <thunderaxiom@xxxxxxxxx>
Subject: Re: Find if RPGLE program called from Java or other RPG program
To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx>
Date: Wednesday, December 10, 2008, 5:37 AM
David Gibbs skrev den 09-12-2008 20:56:

The program isn't being called FROM java ...
it's being invoked by a remote command server. It's
the same way a program would be invoked from .NET or (I
assume) PHP. In this particular case a java program is
interacting with the remote command server.

Except for the special case of the program running on the
i, using the
native version of jt400.jar, and explicitly asking to be
invoked on-thread.

Note that this will not help - in my experience - if you
need stuff from
QTEMP from the program invoking the Java program. As I
have understood
it it is a matter of Java always invoking a
"subjob" which can run
multithreaded.

If I'm wrong, please correct me (We'd love to be
able to pass QTEMP
around :))


--
Thorbjørn Ravn Andersen "...plus... Tubular
Bells!"

--
This is the Java Programming on and around the iSeries /
AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.