Maizatul wrote:
>
> Hi! I want to pass Data from an application to a servlet. Do you out there
> have any solutions or is there any sites that have the sample of that?
Let's see... how many ways are there for two programs to communicate?
Have the app open a socket connection to port 80, talk to the web server/servlet
engine using HTTP protocol.
Have the servlet open a socket and listen. Have the app connect to this socket
and send the data. Or have the app open and listen to a socket; have the servlet
connect to the socket.
Implement the app as an RMI server. Communicate using remote method calls.
Implement the app as a CORBA server. Communicate using remote method calls.
Have the app write the data to a file. Have the Servlet read the file.
Have the application run in the servlet engine, and thus in the same JVM as the
servlet. To pass information, Use a Singleton class accessible to both app and
servlet.
Have the servlet start the application. Connect an OutputStream to the app's
standard InputStream; Connect an InputStream to the app's standard OutputStream.
___________________________________________________________________________
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