S
Stefan Willmert
Hey everyone,
I'm fairly new to Java, (although i have experience with just about every
other language), so i have a couple questions before i dig too deep into a
possible java solution.
Here's the skinny:
I have an embedded internet enabled device which runs a webserver and
various socket servers for communcations. From the embedded webserver, I
would like to serve a page containing a fairly sophisticated java applet.
The key to this applet being useful however, is the ability to exchange data
with the embedded device (either via http or socket connections) during the
use of the applet.
Now: a few key points that makes me question the possibility:
1. The user may be accessing the embedded webserver (and java applet)
either from a local network or over the internet. (i could possibly live
without access to the java applet from an internet address, but it must be
available from a local network)
2. The java applet will not know until run time, the IP address, socket
port, or hostname of the embedded device, therefore, all connection
parameters MUST be dynamic.
3. The applet will need to request data from the embedded device, which
the user can then modify, and upload back to the embedded device. Basically,
lets just assume the applet is requesting configuration data, modifying the
configuration in the applet, then uploaded the new settings back to the
embedded device. (a graphical UI is needed here to provide a reasonably
simple interface)
So...is this possible using java applets? Any suggestions on the
requirements for completing this? Do i need to sign the applet? But how do i
sign it without knowing the embedded device (server) connection parameters
until run time? I'm just looking for general ideas here on whether java is
the right choice for this project, and possibly some tips and what parts of
java i will need to research to accomplish this.
My other option that i've considered, is a small windows application that
can be included on the embedded device for download on the user's machine.
That would allow the user to then communicate in any capacity with the
device. But I thought it may be a bit nicer if everything is automatically
included and available from a web browser rather than forcing the user to
install an application.
Thanks in advance for all your help
-stefan
I'm fairly new to Java, (although i have experience with just about every
other language), so i have a couple questions before i dig too deep into a
possible java solution.
Here's the skinny:
I have an embedded internet enabled device which runs a webserver and
various socket servers for communcations. From the embedded webserver, I
would like to serve a page containing a fairly sophisticated java applet.
The key to this applet being useful however, is the ability to exchange data
with the embedded device (either via http or socket connections) during the
use of the applet.
Now: a few key points that makes me question the possibility:
1. The user may be accessing the embedded webserver (and java applet)
either from a local network or over the internet. (i could possibly live
without access to the java applet from an internet address, but it must be
available from a local network)
2. The java applet will not know until run time, the IP address, socket
port, or hostname of the embedded device, therefore, all connection
parameters MUST be dynamic.
3. The applet will need to request data from the embedded device, which
the user can then modify, and upload back to the embedded device. Basically,
lets just assume the applet is requesting configuration data, modifying the
configuration in the applet, then uploaded the new settings back to the
embedded device. (a graphical UI is needed here to provide a reasonably
simple interface)
So...is this possible using java applets? Any suggestions on the
requirements for completing this? Do i need to sign the applet? But how do i
sign it without knowing the embedded device (server) connection parameters
until run time? I'm just looking for general ideas here on whether java is
the right choice for this project, and possibly some tips and what parts of
java i will need to research to accomplish this.
My other option that i've considered, is a small windows application that
can be included on the embedded device for download on the user's machine.
That would allow the user to then communicate in any capacity with the
device. But I thought it may be a bit nicer if everything is automatically
included and available from a web browser rather than forcing the user to
install an application.
Thanks in advance for all your help
-stefan