× 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.



I have looked at the CPU usage of the java application that is waiting for a
message on the queue and it looked good (It seemed like it blocked while
waiting, it was not doing polling). Data queues also seemed like the fasted
way to get messages to move between different applications that run on the
same AS/400 machine.

I also feel that this type of solution would scale very well. You can have
multiple java programs or multiple java threads read from the same queue and
only one of them will get a message, that way you can pre-start more jobs or
threads to do the work.

For me it felt as if the communication between to two jobs (CL and Java
process) was almost instantaneous. It also allowed me to make use of
connection pooling for jdbc and AS400 connections which reduced the time to
complete the request even more.

Are there any other ways to move data from java back to a calling RPG / CL
program? I know you can use PCML to call a RPG program from java and you can
have input and output parameters but what can you do if you want to call a
java program from RPG while wanting to have input and output parameters? You
could probably use data areas, MQ Series, Data queues but they all seem to
fall into the same type of solution.

I hope I answered your question, I know I started rambling a bit...

Etienne


-----Original Message-----
From: Fenton, Tim [mailto:Tim_Fenton@hen.invesco.com]
Sent: Tuesday, January 22, 2002 1:43 PM
To: 'java400-l@midrange.com'
Subject: RE: keep a java program open


Just to reiterate that data queues seem to be the key to getting java to
talk to anything on  iSeries. The program sits waiting and behaves pretty
quickly after the painfully slow first time...

-----Original Message-----
From: James H. H. Lampert [mailto:jamesl@hb.quik.com]
Sent: 22 January 2002 14:15
To: java400-l@midrange.com
Subject: Re: keep a java program open


"Richards, Etienne (CAP, PTL)" wrote:
. . .
> What I did was change the Java program to get it's parameters from a data
> queue. The Java program was configured to always run and all it did was
wait
> for data on the data queue.
. . .

I've done similar things with code that front-ended JavaMail, so that
AS/400 host applications could send email through a mail server running
on another machine. (Why the messaging facilities built into OS/400 were
written to *ONLY* send email if the mail server was on the same machine
I don't know.)

--
James H. H. Lampert
Professional Dilettante
http://www.hb.quik.com/jamesl
http://members.hostedscripts.com/antispam.html
http://www.thehungersite.com

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


The information in this e-mail and any attachments
(the 'e-mail') is confidential and intended solely for
the addressee(s) named above.  This e-mail may be
subject to legal professional or other privilege or legal
rules.  The unauthorised use, disclosure or copying
of the e-mail is prohibited.  If you are not the intended
recipient, or a person responsible for delivering the
e-mail to the intended recipient you must not disclose,
copy, distribute or retain this e-mail or any part of it.
This e-mail does not, directly or indirectly, represent
financial advice.
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
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 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.