[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1056) Comet requests for Seam Remoting

Niels Hoogeveen (JIRA) jira-events at lists.jboss.org
Sat Mar 17 18:50:32 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1056?page=comments#action_12356462 ] 
            
Niels Hoogeveen commented on JBSEAM-1056:
-----------------------------------------

Tried out Tomcat 6's chat example and got it working within a seam project. In order to get it working I did the following:

Step 1:
Changed server.xml in jboss-web.deployer:

From:
<Connector port="8080" address="${jboss.bind.address}"    
      maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
      emptySessionPath="true" protocol="HTTP/1.1"
      enableLookups="false" redirectPort="8443" acceptCount="100"
      connectionTimeout="20000" disableUploadTimeout="true" />

To:
<Connector port="8080" address="${jboss.bind.address}"    
      maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
      emptySessionPath="true" protocol="org.apache.coyote.http11.Http11NioProtocol"
      enableLookups="false" redirectPort="8443" acceptCount="100"
      connectionTimeout="20000" disableUploadTimeout="true" />


So changing the protocal from "HTTP/1.1" to "org.apache.coyote.http11.Http11NioProtocol". Also workable is dropping the native Apache libraries in the run path. In my case (Windows) I dropped tcnative-1.dll in the bin directory of JBoss-4.2.0.CR1. This will load the APR libraries and well make sure the apr-connector is loaded. In this case no change has to be made to server.xml

Step 2:

Added to web.xml

<servlet>
    <servlet-name>ChatServlet</servlet-name>
    <servlet-class>chat.ChatServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>ChatServlet</servlet-name>
    <url-pattern>/jsp/chat/chat</url-pattern>
</servlet-mapping>

Step 3:

Copie the the "jsp/chat" directory from the Tomcat 6 example directory to the "view" directory of a seam generated project.

Copied the "WEB-INF/classes/chat" directory from the Tomcat 6 example directory to the "resources" directory of a seam generated project.

The chat example functions as it does in a deployment of Tomcat 6 examples. Which is not very good, cause nobody took the time to work it out properly.



> Comet requests for Seam Remoting
> --------------------------------
>
>                 Key: JBSEAM-1056
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1056
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Remoting
>         Environment: any
>            Reporter: Niels Hoogeveen
>         Assigned To: Shane Bryzak
>
> Since JBossAS-4.2.0.CR1 supports Tomcat 6 a "servlet" of type CometProcessor, which allows for comet style http access, is available. In principle this would allow for a non-polling/long-polling solutions for eg. the JMS example. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list