Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to interface servlet with running java app

Reply
Thread Tools

how to interface servlet with running java app

 
 
Marcel Hell
Guest
Posts: n/a
 
      02-14-2007
I have a path search algorithm application, that holds a large path
array in memory. I want to be able to fire search requests on this
application from jsp or servlets.

I don't know how to interface the ordinary application with servlet
requests from within tomcat. These requests should be handled through
tomcat's message queue.

Any idea or link for further information would be highly appreciated.

Marcel
 
Reply With Quote
 
 
 
 
Marcel Hell
Guest
Posts: n/a
 
      02-14-2007
Maybe this is more precise:

Marcel Hell wrote:
> I have a path search algorithm application, that holds a large path
> array in memory, that for memory size reasons should not run as a servlet on tomcat. I want to be able to fire search requests on this
> application from jsp or servlets.
>
> I don't know how to interface the ordinary application with servlet
> requests from within tomcat. These requests should be handled through
> tomcat's message queue.
>
> Any idea or link for further information would be highly appreciated.
>
> Marcel

 
Reply With Quote
 
 
 
 
Nigel Wade
Guest
Posts: n/a
 
      02-15-2007
Marcel Hell wrote:

> Maybe this is more precise:
>
> Marcel Hell wrote:
>> I have a path search algorithm application, that holds a large path
>> array in memory, that for memory size reasons should not run as a servlet on

tomcat. I want to be able to fire search requests on this
>> application from jsp or servlets.
>>
>> I don't know how to interface the ordinary application with servlet
>> requests from within tomcat.


What I have done in a case like this is to make the external application an RMI
server. When a request comes in to the servlet the servlet makes an RMI call to
the external application. The external app. handles the request and returns
data to the servlet. The servlet then sends whatever reply is appropriate back
to the network client.

>> These requests should be handled through
>> tomcat's message queue.


I don't know what Tomcat's message queue is, so I can offer no advice on how it
might affect your requirements.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail :
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Opening new child window - Running servlet (JSP and Servlet) agapitolw@yahoo.es Java 4 08-27-2007 12:57 PM
How do I launch a new Java app from a running Java app? steve.albin@gmail.com Java 3 01-03-2007 04:59 PM
Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response javadev Java 5 11-16-2006 11:22 AM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM



Advertisments