Although I don't know of a way to use purely EGL to get the file
information, I'm thinking that your service could make use of two or three
Java ExternalTypes in order to retrieve the "Last modified" attribute on the
Using an ExternalType for the java.io.File class, and passing in the full
path to the file on the server, you should be able to instantiate the file
object through EGL and execute first its .exists() method, then, if true,
its .lastModified() method. This returns a BIGINT that we would need to
cast to a java.sql.Date, possibly, and maybe then to an EGL date. If it has
to be a timestamp, then we'd have to take a slightly different route.
Let me know if you want to pursue this approach and I'll try to help.
From: egl-i-bounces@xxxxxxxxxxxx [mailto:egl-i-bounces@xxxxxxxxxxxx] On
Behalf Of Colpaert, Peter
Sent: Wednesday, June 23, 2010 7:45 AM
To: EGL-i (egl-i@xxxxxxxxxxxx)
Subject: [EGL-i] Can this be done in EGL?
I've been asked to look into a possible use of EGL as a web service in our
What we need is the following.
Our RPGLE application residing (of course) on the iSeries would call a web
service to check the timestamp of one or more files that reside on a windows
server (\\server\folder\file.ext<file:///\\server\folder\file.ext> paths
will be provided from the RPGLE). I would use HTTPAPI from Scott Klement,
The web service would then return the timestamps - if the files are found -
or a "no file" indication.
I already looked at some of the examples available in EGL café, but either
I'm not searching well, or there are no examples of EGL accessing or
retrieving information from files that have not been explicitly identified
in the project itself.
Any input would be highly appreciated, even if it is just "sorry, can't be
done in EGL".
Thanks in advance,
Software Engineer - PLM Development Team
Philips Consumer Luminaires
Tel: (+32) 3/459 13 17
Fax: (+32) 3/450 74 33
Address: Industrieterrein Satenrozen 11, 2550 Kontich, Belgium
The information contained in this message may be confidential and legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is
strictly prohibited and may be unlawful. If you are not the intended
recipient, please contact the sender by return e-mail and destroy all copies
of the original message.
This mailing list archive is Copyright 1997-2020 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