[richfaces-issues] [JBoss JIRA] (RF-12916) a4j:push doesn't work in cluster and doesn't have an asynchronous way to notify all Topics (e.g. JMS)

Luan Cestari (JIRA) jira-events at lists.jboss.org
Tue Jun 18 10:35:22 EDT 2013


    [ https://issues.jboss.org/browse/RF-12916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782513#comment-12782513 ] 

Luan Cestari commented on RF-12916:
-----------------------------------

Hi Lukáš,

I created a project (already attached) to exemplify the scenario. Let me first say the configuration of the enviroment. I'm using EAP 6.1.0 (the customer tested something similar with 6.0.0). Below some commands and configurations:

#start command:
/usr/local/EAP-6.1.0/jboss-eap-6.1/bin/domain.sh -b 10.96.36.155 -Djboss.bind.address.management=10.96.36.155 -Djboss.bind.address.unsecure=10.96.36.155



domain.xml modifications:
            <subsystem xmlns="urn:jboss:domain:messaging:1.3">
                <hornetq-server>
                    <clustered>true</clustered>
                    <persistence-enabled>true</persistence-enabled>
                    <cluster-user>admin</cluster-user>
                    <cluster-password>admin1</cluster-password>
                    <journal-type>NIO</journal-type>
                    <journal-min-files>2</journal-min-files>
....



host.xml modifications:
    <servers>
        <server name="server1" group="ha_profile" auto-start="true">
            <socket-bindings socket-binding-group="full-ha-sockets" port-offset="0"/>
        </server>
        <server name="server2" group="ha_profile" auto-start="true">
            <socket-bindings socket-binding-group="full-ha-sockets" port-offset="100"/>
        </server>
    </servers>
...

#the application uses maven, so a simple mvn clean install will generate the WAR in the target folder

#after the deploy of the application the following URLs will be available (to test it, I would recommend using different browsers to simulate different concurrent users):
http://10.96.36.155:8180/jmswithrichfaces/MDBServlet
http://10.96.36.155:8180/jmswithrichfaces/ -> Open in two tabs
http://10.96.36.155:8080/jmswithrichfaces/MDBServlet
http://10.96.36.155:8080/jmswithrichfaces/ -> Open in two tabs


Expected:
A push made by the application would be propagated to all browser/users even in different servers due it is a distributed WAR. In a less technical overview, the server should communicate to all the clients browser.

Overview of the project:
MDBServlet send a JMS message that can will be consumed and will use the Richfaces's push API to call all the web clients connected (http://10.96.36.155:8180/jmswithrichfaces/). This would update the date of everyone.


Let me know if you need any help =)

Regards,
Luan


                
> a4j:push doesn't work in cluster and doesn't have an asynchronous  way to notify all Topics (e.g. JMS)
> ------------------------------------------------------------------------------------------------------
>
>                 Key: RF-12916
>                 URL: https://issues.jboss.org/browse/RF-12916
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.0.Final
>            Reporter: Luan Cestari
>            Assignee: Lukáš Fryč
>              Labels: waiting_on_user
>         Attachments: proj_jms_rich.zip
>
>
> The customer is using JBoss in cluster and he have a Richfaces 4. The web client is using websocket using Richfaces/Atmosphere. The problem is that the customer have heavy asynchronous process that need to notify all websockets from all users (using a JMS, for example)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list