remote controlling java applet

U

Umar Inam

Is it possible to control java applet like by sending messages to it?
I'd like to make a program that would generate commands for applet
that is an interface to a web service. Any tips how this could be
done?
 
A

Andrew Thompson

Umar Inam said:
Is it possible to control java applet like by sending messages to it?

You can control an applet using another applet.
I'd like to make a program that would generate commands for applet
that is an interface to a web service.

Is the web service applet _your_ applet,
or hosted in your pages?
..Any tips how this could be
done?

That depends, more information required,
what's an URL of the Applet?
 
A

Araxes Tharsis

Umar Inam said:
Is it possible to control java applet like by sending messages to it?
I'd like to make a program that would generate commands for applet
that is an interface to a web service. Any tips how this could be
done?

Hi,

You can do it using RMI and making the Applet an RMI Server. Look at the
following tutorial, and in particular to the "RMI Client-side Callbacks"
section:
http://java.sun.com/developer/onlineTraining/rmi/RMI.html
Sincerely,
Araxes Tharsis
 
N

Nathan Zumwalt

You have to keep in mind that applets have a lot of security
restrictions unless you sign them and the user accepts the signature.

It might be easier to poll from the applet to the server, though. At
intervals, have the applet communicate back to the server via your web
services, or sockets to determine what it should do. Without knowing
exactly what you mean by "control java applet", it's hard to say more
than that.

-Nathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top