Yes the applet can be the server.
Mainly I think you should check the security model of the Java virtual machine
you're using, it changes from
JDK 1.1.x to JDK 1.2.x, it also changes with diferent vendors, Microsoft,
Netscape, and Sun, so you should consider
to use the java pluging in orther to java an uniform deploy platform.

For example if your' applet runs on the JVM of Netscape Comunicator,
You should need a signed applet and include to this lines in your code:
netscape.security.PrivilegeManager.enablePrivilege("UniversalConnect");
netscape.security.PrivilegeManager.enablePrivilege("UniversalListen);

Mainly in all platforms the security model goes around signed code.

Bye :)

Demch.

Xizhen Wang wrote:

> Hi! I want to write applet that has socket connection with the web
> server from which the applet is from. For some special reason, I am
> wondering if the applet can be the server and the web server be the
> client? In this way, the applet can be waiting for connection and the
> web server can connect to the applet when he wants.
>
> I tried, but the connection is refused. Can anyone give me some hints?
>
> thanks!
>
> xz
>
> ___________________________________________________________________________
> 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

--
**********************************************************
     Ing. Diego Malpica Chauvet 238-5083 ext 5083
       Departamento de Sistemas de Infomaci�n

                    Tec de Monterrey
1999: A�o de la Confianza en el Campus Estado de M�xico
           Premio Nacional de Calidad 1998
**********************************************************

___________________________________________________________________________
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

Reply via email to