Howdy,
One solution that I've seen for this sort of problem in the past is to write
a simple Java class around whatever API the application provides. Then, you
can use RMI to call the Java class (which presumably would then call the
application under the covers), and return a response.
Kinda makes you write a bit of glue, but it seems to get the job done.
Later,
Don
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Theodore Tegos
Sent: Sunday, August 08, 1999 7:16 PM
To: [EMAIL PROTECTED]
Subject: Applications & Servlets
Hi,
I have a Java application which will run on the background as a daemon
and perform some kind of operation. I also have a servlet and I want the
information from the application to be available to it. Do you have any
suggestions about the way that the application and the servlet could
communicate? I know that two servlets can communicate by using their
"servlet context" but what about an application and a servlet?. Since the
application and the servlet will run on the same JVM, the communication
should preferably be done directly by using memory. This means that URL
connections or sockets are not a good solution and neither is the use of
files to exchange the information. Is there any other way that the
communication could be established efficiently?
Thanks in advance,
Theodore.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html