Hi,
I have a question around this: Is it possible to start something as a daemon
or service from applet? I need to start a very small server on a clients
side for accepting calls. We have developed a communication package for our
distant learning project and now I'm interesting how to make a permanent
access to a lector. It works like this:
On the login page is a login applet, which will make a connection to
servlet. This servlet log the user to the database of active users. I need
in the same moment to start a small daemon on client side, which will accept
calls from other active users and start application for communication (chat,
phone, video...). But this daemon should stay active, when user will leave
the login page.
Is it possible?
Of course, applet is signed and user knows about it and what is applet
doing.
--jerry
Hi Jerry,
Security Manager is going to be your problem here. Applets can only access
ports
on the server that they originate from, they can't listen on ports at the
client.
Your applet is a trusted applet so you may well be able to setup a socket.
Servlets can only only listen to ports on the server, they usually can't
access
sockets on other machines. However you can have trusted servlets too, same
as with applets,
which can circumvent the sand box restrictions placed on them.
Hope this helps,
Andy Bailey
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html