"Sebas" <se****@terra.es> wrote in message
news:ka***********************@telenews.teleline.e s...
I actually *did* answer your original query, and posted a very detailed
outline on how you could approach this task. It was posted on the 11th
November - do a Google search, if necessary, to find it.
still waiting...
Well, you shouldn't be 'still waiting', not if you read my original
response to your query and started to put some of the suggestions to use.
You should, instead, be busy trying to solve your problem.
Hi to everybody, due to I want to use the serial port of
a server machine through an applet allocated in html
document.
Then one application will run in the server machine and
using the serial port. The other application that will be called
in the html document that it'll allocate the frame with the user
interfaz and it'll manage the events (applet).
But I have any questions. I suppose the server application
will be running using the java command (java MyServerApp.class),
where can I look for information about communication between
a server application and the user applet.
Now, it sounds as if you already have an fully-working application that
performs all required tasks - access local serial port, etc - but you wish
to convert this into a client / server model.
The problem can be broken down thus:
* There is a server application executing somewhere; its
responsibilities include:
- Communicating with a local [i.e. on the same machine]
serial port
- Communicating with a user of the application [through a
client program - see next entry], and translating requests
or commsnds it receives from the user into actions
like reading or writing data from / to the serial port
* There is a client program, whether this be a Java application,
or a Java applet [or other type of program], that communicates
with the server application:
- Sending requests / commands to the server
- Receiving the data / results of the sent requests / actions
The client program is also, of course, responsible for making
use of the server-fed data as appropriate to the design. So,
for example, if a particular data chunk represents the co-ordinates
of a shape, then it is responsible for extracting that information
and drawing the shape [all this should be quite obvious]
If you have not had previous experience with client / server application
creation, then as a first step I would suggest that you complete the
tutorial at:
http://java.sun.com/docs/books/tutor...ing/index.html
to learn about the basics of client / server structure, and communication.
Probably one of the most important differences between the standalone
program and client / server model is in the need to convert actions [which
would be peformed by a single method call in a standalone program] into
requests which describe what is to be done, packaged along with and the data
needed to carry out such requests.
Little more can be said at this juncture. I suggest simply that you obtained
more knowledge by completing the tutorial, and take steps to design a
solution that meets your needs. You may, of course, feel free to post
queries about any problems you experience.
P.D. Sorry for the reiteration, but in this case I've changed
the subject in order to keep the coherence.
You mean nobody answered your question [after a *few* posts] and you decided
to try again with the *same* query. It's a shame you don't seem to have made
some effort towards solving your problem, and perhaps posted a query
reflecting any of these new findings.
May I suggest reading the following document, and perhaps learning a little
about maximising the likelihood of having a query answered.
http://www.catb.org/~esr/faqs/smart-questions.html
I hope this helps,
Anthony Borla
P.S.
Other Java technolgies [e.g. RMI] may also be used to implement this type of
application; you may wish to consider alternatives