RE: Embedded Tomcat and application communication

2007-01-24 Thread Nelson, Tracy M.
| From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] | Sent: Tuesday, January 23, 2007 04:29 | | The application I am writing this for is a server daemon which has a cli | that enables the user to issue commands to it once it's up and running. Can you just fire up a shell (System.getRuntime().ex

Re: Embedded Tomcat and application communication

2007-01-23 Thread ben short
On further reading... Server server = new Server(8080); Context root = new Context(server,"/",Context.SESSIONS); root.addServlet(new ServletHolder(new HelloServlet("Ciao")), "/*"); server.start(); You can pass the interface to your application into the HelloServlet's constructor. My app actuall

Re: Embedded Tomcat and application communication

2007-01-23 Thread ben short
Hi, I have done something similar, but used Jetty [1] as I couldn't figure out how to get tomcat to do it.. My application registers a servlet and starts jetty. the servlet gets the interface to the application via a static method. But it all works OK. Maybe you could set the application interfa

Re: Embedded Tomcat and application communication

2007-01-23 Thread Yiannis Mavroukakis
Oh no, I mean the exact opposite :) - | Application | | | |---| |Embedded TC| - The application I am writing this for is a server daemon which has a cli that enables the user to issue commands to it once it's up and running.

Re: Embedded Tomcat and application communication

2007-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yiannis, Yiannis Mavroukakis wrote: > The scenario is a server daemon that has a cli for runtime > configuration and status. Oh, so you want to be able to reconfigure Tomcat remotely. I assume that you are talking about more interesting things than

RE: Embedded Tomcat and application communication

2007-01-21 Thread Yiannis Mavroukakis
Hi Chris, The scenario is a server daemon that has a cli for runtime configuration and status. I intend to use embedded tomcat to replace/augment that cli and I have actually done so succesfully, using RMI but I was wondering whether there was some other solution that allows Tomcat to communic

Re: Embedded Tomcat and application communication

2007-01-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yiannis, Yiannis Mavroukakis wrote: > Hello, > > I have the following scenario. I wish to integrate tomcat into an > existing server application , so that a webapp can send configuration > commands and query that application's status . Browsing throu

Embedded Tomcat and application communication

2007-01-21 Thread Yiannis Mavroukakis
Hello, I have the following scenario. I wish to integrate tomcat into an existing server application , so that a webapp can send configuration commands and query that application's status . Browsing through the list, the most definitive answer I have seen is to use RMI. Is there another path to