Running RichFaces 4.x on JBoss AS7

Version 1

    TweetStream

    These are the "quick steps" concerning HornetQ/JMS/Atmosphere to get this app running.

     

    Edit web.xml and change PushFilter to:

    {code:xml}

    <filter-mapping>

            <filter-name>PushFilter</filter-name>

            <servlet-name>Faces Servlet</servlet-name>

           <url-pattern>/*</url-pattern>

           <dispatcher>FORWARD</dispatcher>

           <dispatcher>REQUEST</dispatcher>

           <dispatcher>ASYNC</dispatcher>

           <dispatcher>ERROR</dispatcher>

        </filter-mapping>

    {code}

     

    Build and deploy TweetStream

     

    Start JBoss AS7 with:

    ./standalone.sh --server-config standalone-preview.xml

     

    TODO - find way to dynamically set the following up through config files.

    Fire up the CLI with ./jboss-admin.sh

    add the "twitter" topic....

    $> add-jms-topic --name=twitter --entries=topic/twitter

     

    Edit $JBOSS_HOME/standalone/configuration/standalone-preview.xml (note: I couldn't find a way to edit this in the CLI)

    {code:xml}

    <permission type="createDurableQueue" roles="guest"/>

    <permission type="deleteDurableQueue" roles="guest"/>

    {code}

     

    *you may need to restart the server after these changes.