Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 34750 invoked from network); 1 May 2000 02:09:06 -0000 Received: from sweiss-01.dslbr.toad.net (HELO cassidy.bonampak.net) (root@162.33.142.122) by locus.apache.org with SMTP; 1 May 2000 02:09:06 -0000 Received: from toad.net (IDENT:steve@localhost [127.0.0.1]) by cassidy.bonampak.net (8.9.3/8.9.3) with ESMTP id WAA30407 for ; Sun, 30 Apr 2000 22:09:01 -0400 Sender: steve@bonampak.net Message-ID: <390CE73D.77CBBCAE@toad.net> Date: Sun, 30 Apr 2000 22:09:01 -0400 From: Steve Weiss X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) X-Accept-Language: en, fr-FR, de-DE MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Can I somehow run a java process (application) within the Tomcat java process References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I could think of two fairly obvious possibilities: 1) Convert your CORBA application to a servlet (you'd probably want it to start up when Tomcat starts). This shouldn't be too difficult and you'd have them both running in the same JVM. 2) Use CORBA to communicate between your JSPs/servlets and the CORBA app. You could also use RMI for this, but since your application is already CORBA it might be easier to go that way. -Steve Stefan Freyr Stefansson wrote: > > Hi! Man do I need a quick and positive answer to this one!!! :o/ > > The thing is I'm doing this surveillance system for servers (as in > client/server). It uses CORBA to communicate with the server it's > monitoring and receives method invocations from it (things like > clientConnected(info), dataPackageSent(info) and so on). > We're trying to provide remote administration to it through JSP and we've > been developing the thing in each corner of the room (we're two who are > working on it). I've been doing the JSP stuff and had pretty good success > with it and my partner has been doing the CORBA stuff and likewise been > pretty successful. > Tonight we tried to combine the two and wanted to see if we could remotely > stop our system from logging information down to the database... well.. it > didn't work. It didn't take a long time for us figuring out that the reason > for this was that Tomcat was running on one java.exe process and the CORBA > service application (which is just a java app... a class with a main > function) was running on another. This probably means (and I'm guessing > here) that they are being run on seperate virtual machines!?!?? Anyways... > that's no good for us since now, the UI part (my JSP) is using a whole > different set of class instances than his CORBA things. Which, in return, > means that when I shut off "my" database connection... his is still fine and > dandy!!! So we see one solution to the problem... have the same process > create two threads... one running tomcat and the other running the corba > server app. > Does anybody know if this is possible??? > > Please help, we're running out of time (this is a school project) and we > really need a solution to this problem... And of course if anybody knows a > better way to solve this... hey I'm all ears!!! > > Kind regards, > Stefan > > -------------------------------------------------------------------------- > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > For additional commmands, email: tomcat-user-help@jakarta.apache.org -- "If you watch TV news, you know less about the world than if you just drank gin straight from the bottle." - Garrison Keillor