× 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 Chris:

Thanks for your reply to my question.

Two details I left out of my original question:
1.) Java is not installed on the source system
2.) I do need a certain level of interaction between the source program, 
and the program on the remote machine. (A couple of String parms for the a 
status and reason code should suffice).

Given these constraints, would the third option you suggested be the best:

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

(RMI is my only option, since we will be moving to WAS Express very soon, 
with no EJB support)

We are a COBOL shop; would anyone have any examples of RMI calls from 
COBOL or CL?

Thanks

message: 2
date: Thu, 9 Oct 2003 09:36:26 -0400
from: chrisd@xxxxxxxxxxxxx
subject: Re: Calling a Java PGM on another iSeries...


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

Comporium Data Services
Web Development
471 Lakeshore Parkway
PO Box 270
Rock Hill, SC 29731

803 326-4153
803 326-4252 fax



java400-l-request@xxxxxxxxxxxx 
Sent by: java400-l-bounces+mike.burdette=comporium.com@xxxxxxxxxxxx
10/09/2003 01:00 PM
Please respond to
java400-l@xxxxxxxxxxxx


To
java400-l@xxxxxxxxxxxx
cc

Subject
JAVA400-L Digest, Vol 1, Issue 818






Send JAVA400-L mailing list submissions to
                 java400-l@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
                 http://lists.midrange.com/mailman/listinfo/java400-l
or, via email, send a message with subject or body 'help' to
                 java400-l-request@xxxxxxxxxxxx

You can reach the person managing the list at
                 java400-l-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of JAVA400-L digest..."


Today's Topics:

   1. Calling a Java PGM on another iSeries... (Mike Burdette)
   2. Re: Calling a Java PGM on another iSeries...
      (chrisd@xxxxxxxxxxxxx)
   3. java.sql.Time and Time field in AS400 DB2 (Ashish Kulkarni)
   4. RE: java.sql.Time and Time field in AS400 DB2 (Hall, Philip)


----------------------------------------------------------------------

message: 1
date: Wed, 08 Oct 2003 21:57:19 -0400
from: Mike Burdette <Mike.Burdette@xxxxxxxxxxxxx>
subject: Calling a Java PGM on another iSeries...

   Hi:
 
   I need to call a Java PGM on one   AS400. Any suggestions on the 
   Thanks

   Mike&nbs
   Comporium Data Services
   Web Development   471 Lakeshore Parkway
   PO Box 270
   Rock Hi
   803 326-4153
   803 326-4252 f 

------------------------------

message: 2
date: Thu, 9 Oct 2003 09:36:26 -0400
from: chrisd@xxxxxxxxxxxxx
subject: Re: Calling a Java PGM on another iSeries...


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.








------------------------------

message: 3
date: Thu, 9 Oct 2003 09:41:04 -0700 (PDT)
from: Ashish Kulkarni <kulkarni_ash1312@xxxxxxxxx>
subject: java.sql.Time and Time field in AS400 DB2

Hi
I have a problem building a time field from database.
I have a data base which has time field defined in it
(T ), I am reading this time field using
resultSet.getTime() method from SQL,
but when the field value is 24:00:00 , i get
java.sql.Time as 00:00:00, which is start of day and
not end of day
So if the date field is 10-10-03 and time is field is
24:00:00 then actually it is end of day, but when i
field a timestamp field i get it is as start of day
is there any work around for solving this problem

Ashish

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


------------------------------

message: 4
date: Thu, 9 Oct 2003 11:50:47 -0500
from: "Hall, Philip" <phall@xxxxxxxx>
subject: RE: java.sql.Time and Time field in AS400 DB2

> I am reading this time field using
> resultSet.getTime() method from SQL,
> but when the field value is 24:00:00 , i get
> java.sql.Time as 00:00:00, which is start of day and
> not end of day
> So if the date field is 10-10-03 and time is field is
> 24:00:00 then actually it is end of day, but when i
> field a timestamp field i get it is as start of day
> is there any work around for solving this problem

Yes, understand that there is no such time as 24:00:00 ! You will never 
see a digital 24hour clock show 24:00:00

23:59:59.99 is the 'end of day', '24:00:00' = 00:00:00 is the start of the 
day.

--phil



------------------------------

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
digest 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.



End of JAVA400-L Digest, Vol 1, Issue 818
*****************************************


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.