You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by wolverine my <wo...@gmail.com> on 2005/09/03 00:46:45 UTC

Shared object between Tomcat and external program?

I'm running Tomcat 5.5.
I want to create a servlet to accept a HTTP request. The servlet
creates an object based on the request parameters and forward the
object (using Queue) to another standalone Java process started from
the command line, a background process.

In this case, the same Queue object should be accessible both in the
servlet and in the standalone Java process:
- the servlet adds object into the Queue and,
- the standalone Java process retrieve the object from the same Queue

How can we do this?

Is there a way the servlet to lookup an Queue object created by the
standalone Java program or vise versa?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Shared object between Tomcat and external program?

Posted by Mark Thomas <ma...@apache.org>.
Look at JMS. Should do exactly what you want.

Mark

wolverine my wrote:
> I'm running Tomcat 5.5.
> I want to create a servlet to accept a HTTP request. The servlet
> creates an object based on the request parameters and forward the
> object (using Queue) to another standalone Java process started from
> the command line, a background process.
> 
> In this case, the same Queue object should be accessible both in the
> servlet and in the standalone Java process:
> - the servlet adds object into the Queue and,
> - the standalone Java process retrieve the object from the same Queue
> 
> How can we do this?
> 
> Is there a way the servlet to lookup an Queue object created by the
> standalone Java program or vise versa?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org