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

CDI beans replication does not work

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment