Hi,
You can efficiently use Sockets for this type of communication between
processes running on the same machine. Just be sure that the Socket
connections use "localhost" as the name of host. All the OSes that I am
familiar with (WinNT, Win95, Linux, BSD) implement localhost socket
connections using memory. Thus, "localhost" connections are much faster and
more efficient than other socket connections.
ted stockwell
> -----Original Message-----
> From: Andy Bailey [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, August 09, 1999 1:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Applications & Servlets
>
> ----- Original Message -----
> From: Theodore Tegos <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 09, 1999 1:16 AM
> 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.
> Hi Theodore,
>
> try pipes, they use memory as the communications medium. Do you mean the
> same JVM
> or the same JVM instance, there is a big difference.
>
> Hope that helps
>
> Andy Bailey
>
>
___________________________________________________________________________
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