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



There are a few ways to do this, depending on the level of interaction you
need between your source program, and the program on the remote machine.

If you don't find a fire-and-forget type call of your remote program, then
you could use SBMRMTCMD to submit the call to JAVA on the remote system.
This command allows you to run a CL command on a remote system, but you
have to have a DDM file set up with the remote system's parameters.

If you need more synchronous interaction with the Java program, then you
could write a small Java program on the source system that would interact
via the AS/400 Toolkit to call the program on the remote system, and wait
for it's return.

Another option, if you want to call specific methods on the java class on
the remote system, would be to use something like RMI or EJBs to handle the
request on the remote system, and then they could actually return Java
Objects to your source system.
----------------------------------------------------------------------
Chris DeLashmutt
Senior R&D Analyst
LeasePlan USA
1165 Sanctuary Pkwy., Alpharetta, GA  30004
Phone: 678-202-8695
Fax: 678-566-8551
----------------------------------------------------------------------



                                                                                
                                                                    
                      Mike Burdette                                             
                                                                    
                      <Mike.Burdette@comp        To:       
java400-l@xxxxxxxxxxxx                                                          
         
                      orium.com>                 cc:                            
                                                                    
                      Sent by:                   Subject:  Calling a Java PGM 
on another iSeries...                                                 
                      java400-l-bounces@m                                       
                                                                    
                      idrange.com                                               
                                                                    
                                                                                
                                                                    
                                                                                
                                                                    
                      10/08/2003 09:57 PM                                       
                                                                    
                      Please respond to                                         
                                                                    
                      Java Programming on                                       
                                                                    
                      and around the                                            
                                                                    
                      iSeries / AS400                                           
                                                                    
                                                                                
                                                                    
                                                                                
                                                                    




   Hi:

   I need to call a Java PGM on one= AS400 from a COBOL or CL PGM on
another
   AS400. Any suggestions on the= best way to do this?

   Thanks

   Mike&nbs= p;Burdette

   Comporium Data Services
   Web Development   471 Lakeshore Parkway
   PO Box 270
   Rock Hi= ll, SC 29731

   803 326-4153
   803 326-4252 f= ax
   _______________________________________________
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 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.