Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-863

Replication of EJB Session Beans does not work in cluster

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.0.Final, 1.1.1.Final
    • Fix Version/s: TBC
    • Component/s: None
    • Labels:
      None
    • Environment:
      JBossAS 6 SNAPSHOT (from 2011-03-02) - built in hudson
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Package the application as a single war file.

      Show
      Package the application as a single war file.

      Description

      I tested this feature with JSF/Translator example and I needed to do a few changes to test this feature. My fork of weld-core with the changes can be found at: https://github.com/mgencur/core/tree/cluster-test. I'll also attach a packaged ear of the app which I used.

      Steps to reproduce the bug:

      1) deploy the attached weld-translator.ear file or checkout my changes from github and build the application
      2) start first and second instance of the JBossAS to create a cluster (can be found at https://github.com/weld/core/blob/master/examples/README.md)
      3) deploy the app
      4) go to your web browser and disable cookies
      5) go to http://localhost:8080/weld-translator, enter some text and click "Translate"
      6) now change the port number in the address to 8180 and refresh (note that there should be also jsessionid included in the URL)
      7) now the text you entered into the text area should be still there (since the value is stored in a field of SFSB which is clustered, but instead, you get the following exception at the slave JBossAS instance:

      12:00:16,662 WARN [org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager] Problem accessing session [hz****59+A__]: org.jboss.weld.exceptions.WeldException: WELD-001500 Failed to deserialize proxy object

      Note that if you then go to the first address (with port 8080) and then again to 8180 - from now the replication works fine. But IMHO this is not desired behaviour, the second (backup) JBoss instance should be ready immediately

      The question is if the changes of the application are the right ones. There is nobody here who could confirm this. Please pay attention to it and comment this issue if it's not correct.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            pferraro Paul Ferraro added a comment -

            Stuart is correct.

            Show
            pferraro Paul Ferraro added a comment - Stuart is correct.
            Hide
            maschmid Marek Schmidt added a comment -

            Should this be working now?

            Show
            maschmid Marek Schmidt added a comment - Should this be working now?
            Hide
            alesj Ales Justin added a comment -

            Tomaz, can you please test this?

            Show
            alesj Ales Justin added a comment - Tomaz, can you please test this?
            Hide
            swd847 Stuart Douglas added a comment -

            There are already tests in AS7 for this.

            Show
            swd847 Stuart Douglas added a comment - There are already tests in AS7 for this.
            Hide
            alesj Ales Justin added a comment -

            Per Stuart - already done in AS7.
            (although we should still add some clustering tests directly into Weld_Core)

            Show
            alesj Ales Justin added a comment - Per Stuart - already done in AS7. (although we should still add some clustering tests directly into Weld_Core)

              People

              • Assignee:
                Unassigned
                Reporter:
                mgencur Martin Gencur
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development