Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-731

CDI beans replication does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.2
    • None
    • None
    • Windows 7, apache + mod_jk

    Description

      CDI Beans are not replicated between cluster nodes. Properties of migrated beans are null after session migration.
      mod_jk configuration:
      worker.list=lb
      worker.lb.type=lb
      worker.lb.balance_workers=showcase_node1,showcase_node2
      worker.lb.mount//tomee_replication-1.0/*
      worker.showcase_node1.host=localhost
      worker.showcase_node1.port=10030
      worker.showcase_node2.host=localhost
      worker.showcase_node2.port=10040

      The issue can be reproducer with test application: https://github.com/eiskonzept/tomee

      Steps to reproduce:
      1.Configure and start Apache
      2. Start two tomee instances:
      mvn clean package tomee:start -P node1
      mvn clean package tomee:start -P node2
      3. Open /tomee_replication-1.0/index.xhtml and remember current node
      4. Submit some values. Values are saved in WindowScoped bean.
      5. Stop current node
      6. Reload page(without form submission)

      After session migration values of WindowScoped bean are null.

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            volkovd Dmitry Volkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: