Click to See Complete Forum and Search --> : External process to Servlet


raghukayyar
May 9th, 2000, 04:45 AM
Hi,

I need to send some data from an external process written in java(application) to a servlet. Is this possible ?

If it is not possible can i send the data from same application directly to an applet.(Using Network Programming).

The application(external process) will be running on the same host where web-server is running.

Please help me,
with regards,
raghu.

raghu

kib63613
May 9th, 2000, 08:48 AM
Both situations can be implemented !!
In the server side, you may associate your servlet with the external process ( application) through
lots of method. For example, you may use socket connection, RMI connection, CORBA, or some
message queue package to communication each other, for example, JavaSpace, MQ series. Because
of the loss of security imposed on the servlet, servlet can communicate with the external process
by so lots different techniques.
But The techniques may not all be able to applied in the applet. The major issue is the security sandbox.
Hence, you can consider socket connection, RMI connection for now. Basically, you also have to
consider if the browser support the communication techniques. At this time, RMI, and socket connection
should be popular techniques which are applied in the field of communication between applet and server
side application.
good luck,
Alfred Wu