brat072297
asked on
Starting application from applet
Hi,
Is there any way to start an application (on server, of course) from an applet. I don't want to use RMI. I want
my application do perform some tranactions based on applet's input.
input.
Is there any way to start an application (on server, of course) from an applet. I don't want to use RMI. I want
my application do perform some tranactions based on applet's input.
input.
ASKER
I was thinking of CGI, too.
However I don't have any idea how to pass the reslult (vector of
strings) back to the applet (it has to be passed to the applet, because I want it to communicate with JavaScript).
However I don't have any idea how to pass the reslult (vector of
strings) back to the applet (it has to be passed to the applet, because I want it to communicate with JavaScript).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
host as the HTTP Server so that you can have it perform
transactions based on the applets input.
Do you require a response from this application?
It sounds like you could do this using a CGI invokation of
the application. Is this what you had in mind? You could use
servlets.
Another approach would be to create an application server which runs on the HTTP host and listens on a dedicated port. The
applet opens a socket on this port and sends a message to the
app server which indicates which application to run. The application server spawns a process to run the given
application. Results can be returned a variety of ways.