Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

how to interface servlet with running java app

Thread view: 
Marcel Hell - 14 Feb 2007 12:49 GMT
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
Marcel Hell - 14 Feb 2007 14:30 GMT
Maybe this is more precise:

> 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
[quoted text clipped - 7 lines]
>
> Marcel
Nigel Wade - 15 Feb 2007 09:27 GMT
> Maybe this is more precise:
>
[quoted text clipped - 4 lines]
>> 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.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.