users@glassfish.java.net

help: secure my cometd app..

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Feb 2009 01:31:00 PST

Jean-Francois Arcand said "Starting with GlassFish v2 build 15, secure AJAX/Comet requests are now supported by default "(http://weblogs.java.net/blog/jfarcand/archive/2006/09/index.html), but I cannot use cometd through https://localhost:8181,I use the chatroom (dojox+grizzly) example . The example can work well through 8080, but has no response through 8181, even the main page can diplay through 8181.

I use the glassfish V3, my configure file web.xml snipt is:

  <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="8080" security-enabled="false" server-name="" xpowered-by="true">
          <property name="proxiedProtocols" value="ws/tcp"/>
          <property name="cometSupport" value="true"/>
        </http-listener>
        <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="8181" security-enabled="true" server-name="" xpowered-by="true">
          <ssl cert-nickname="s1as" client-auth-enabled="true" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
                   <property name="cometSupport" value="true"/>
        </http-listener>

thank you very much!
[Message sent by forum member 'zhaofu' (zhaofu)]

http://forums.java.net/jive/thread.jspa?messageID=331463