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



Shane_Cessna@xxxxxxx wrote:
> Does anyone know where I might be able to find information on writing a 
> java program for all of our company's PCs that will listen for a remote 
> command coming from our as400?  Basically, I need a way around RUNRMTCMD 
> and STRPCCMD due to a webfaced application (webfacing doesn't like 
> them)...Ideally, the PC would be listening for the remote command; and a 
> Java program running on our as400 would send the PC a command via the PCs 
> IP address...If anyone can think of an easier way to go, please enlighten 
> me...I've only been programming with Java for a month or so...

Sounds like you need to write basic TCP/IP server program that listens
on a port for a request and then processes the request on the local PC.
 See
http://java.sun.com/docs/books/tutorial/networking/sockets/index.html
(or http://tinyurl.com/5fkeo) for a tutorial.

Since you are listening to an iSeries, you might want to consider just
using a Dataqueue ... (perhaps keyed by host machine's IP address, so
you can use a single queue).  Your iSeries application would simply put
the request on the data queue.  Your java application running on the PC
would listen on the data queue for a new entry and process it when it
arrived.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.