Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 21112 invoked from network); 17 Nov 2007 10:05:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2007 10:05:15 -0000 Received: (qmail 49122 invoked by uid 500); 17 Nov 2007 10:04:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 48631 invoked by uid 500); 17 Nov 2007 10:04:51 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 48620 invoked by uid 99); 17 Nov 2007 10:04:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2007 02:04:51 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [196.25.240.87] (HELO ctb-mesg-2-2.saix.net) (196.25.240.87) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2007 10:04:39 +0000 Received: from animal (dsl-243-81-201.telkomadsl.co.za [41.243.81.201]) by ctb-mesg-2-2.saix.net (Postfix) with SMTP id A748ED9BF for ; Sat, 17 Nov 2007 12:04:25 +0200 (SAST) Message-ID: <001f01c82901$3b122490$0300000a@animal> From: "Johnny Kewl" To: "Tomcat Users List" References: Subject: Re: Can Tomcat be used as a servlet container for non-http servlets? Date: Sat, 17 Nov 2007 12:04:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 000780-1, 2007/10/10), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org --------------------------------------------------------------------------- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --------------------------------------------------------------------------- ----- Original Message ----- From: "Sean Nagle" To: "Tomcat Users List" Sent: Saturday, November 17, 2007 2:20 AM Subject: RE: Can Tomcat be used as a servlet container for non-http servlets? > Johnny, > > The answers to most of your questions are still up in the air. There are > several ways that I could go about the project. The CNC machines that I > have > experience with rely on an operator (human) to point it (the machine) at a > file that contains the instructions and say 'GO'. > > Along these lines, I was thinking one approach would be to have the CNC > programmer write what would essentially be a JSP that has instructions in > G > code and any logic in java. Next the programmer would request this page > from > Tomcat and the response would only have the G code instructions and this > file could be saved to the filesystem. Then the CNC operator would then > point the machine at this file. That is the 'manual version'. Its fairly easy to check.... Install a tomcat on the same network as the machine... Just place a text file on tomcat "hellomachine.txt" Give the CNC programmer the IP address and ask him if he can read it. It will come in with all the HTTP header stuff... but if you get that then you in business with a GenericServlet. If he says it cant take an IP address... it aint TCP/IP ;) If it uses say a UNC address, then its a file sharing protocol and Tomcat is not your thing. If the documentation is really crap and you have a machine talking to a PC already, get a protocol analyser and watch whats happening... the one I like is Wire Shark. Good luck... --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org