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



> Just curious, what are your reasons for not calling RPG from Java?  I
have a
> Servlet in production calling an RPG program with PCML as the
intermediary,
> and it is very very fast.

Aaron, are you using this in production?  Sounds like you're pretty happy
with it.  I've only used the RPG Program Call wizard in WSDCi and run it in
the test environment, but it seems to execute pretty well.  Have you done
anything with calling an RPG program that returns an SQL result set?  I'd
be interested to know if it's possible to call an RPG program that returns
a result set from a servlet.  I guess if you call the RPG program as a
stored procedure...

> I agree that calling Java from RPG is pretty much useless unless it is a
> batch process or if you have a huge machine.

We have an 8-way 830, and the performance on the first call still blows.
We were using this to use JavaMail, and now that we bought a package that
sends mail with a CL command, everyone is abandoning the JavaMail/RPG stuff
we wrote (at my suggestion).  You have to have some way to create the JVM
before the initial call.  I think someone once suggested using socket
servers, data queues would be another way.

> People will tell you to use a
> data queue or something similar, but that means you most likely need to
> write your Java interface so it can run off of a completely validated
data
> queue record (meaning you don't collaborate with all the different
methods
> in a Java class).

Mike E.





                                                                                
                                                    
                      "Bartell, Aaron L.                                        
                                                    
                      (TC)"                      To:       "'Java Programming 
on and around the iSeries / AS400'"                   
                      <ALBartell@taylorco         <java400-l@xxxxxxxxxxxx>      
                                                    
                      rp.com>                    cc:                            
                                                    
                      Sent by:                   Subject:  RE: starting JVM is 
slow                                                 
                      java400-l-bounces@m                                       
                                                    
                      idrange.com                                               
                                                    
                                                                                
                                                    
                                                                                
                                                    
                      01/12/2004 02:06 PM                                       
                                                    
                      Please respond to                                         
                                                    
                      Java Programming on                                       
                                                    
                      and around the                                            
                                                    
                      iSeries / AS400                                           
                                                    
                                                                                
                                                    
                                                                                
                                                    




Just curious, what are your reasons for not calling RPG from Java?  I have
a
Servlet in production calling an RPG program with PCML as the intermediary,
and it is very very fast.

I agree that calling Java from RPG is pretty much useless unless it is a
batch process or if you have a huge machine.  People will tell you to use a
data queue or something similar, but that means you most likely need to
write your Java interface so it can run off of a completely validated data
queue record (meaning you don't collaborate with all the different methods
in a Java class).



Aaron Bartell

-----Original Message-----
From: java400-l-bounces+albartell=taylorcorp.com@xxxxxxxxxxxx
[mailto:java400-l-bounces+albartell=taylorcorp.com@xxxxxxxxxxxx]On
Behalf Of Dieter Bender
Sent: Monday, January 12, 2004 11:08 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: starting JVM is slow


Hi,

IMHO best practice is: not to call java from RPG and vice versa.

Dieter Bender

On Montag, 12. Januar 2004 17:35, Ashish Kulkarni wrote:
> Hi
> I am calling Java program from RPG, and for the first
> time it is very slow, as it has to start the JVM etc,
> is there a way to imporve performance , what are the
> best practice to call java from RPG,
>
> Ashish
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> _______________________________________________
> 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.

--
mfG

Dieter Bender


DV-Beratung Dieter Bender
Wetzlarerstr. 25
35435 Wettenberg
Tel. +49 641 9805855
Fax +49 641 9805856
www.bender-dv.de
eMail dieter.bender@xxxxxxxxxxxx

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