posted 14 years ago
The Java greenhorn is back. Well, I've got Tomcat set up and I've been doing some reading on servlets and JSP - got the book "Murach's Java Serlets and JSP". Here's what I'm trying to do: we have roughly 1200 systems here at my work, mostly Sun Solaris, which run a Perl script that sends information via email to a central system. Right now it's kind of a kludge of sendmail, procmail, Perl, and PHP on the central system that gets the info, updates a MySQL database so users can query the database from a browser. I want to make the whole thing cleaner by (hopefully) using Java, servlets, and JSP to do the same thing. Jelle suggested using XML-RPC, and I just did a little poking around and it looks to me that there IS an XML-RPC module for Perl, but I'm trying to keep it as plain vanilla Perl on the clients as possible because loading special modules on 1200-plus servers is a PAIN! Plus, being a large corporation with change control and all the bureaucracy, that would make it even more painful. So, what I'm looking for is a method of using my current Perl script to connect to a port on the central server and use a servlet on the central server to get the information from our systems (in a simple XML format). My (little) understanding of servlets is that they only listen to HTTP requests, so I'm wondering if there's a way I can make a servlet listen on a plain ol' TCP port and get the information from the client Perl scripts. Did I explain that satisfactorily?