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

EnterpriseBeanProxyMethodHandler creates a new SFSB session on failover

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.2.Final, 2.2.0.Beta2
    • Fix Version/s: 2.2.0.CR1
    • Component/s: Clustering
    • Labels:
      None

      Description

      The offending code

         @SuppressWarnings("unchecked")
          private Object readResolve() throws ObjectStreamException {
              return new EnterpriseBeanProxyMethodHandler<T>((SessionBean<T>) manager.getPassivationCapableBean(beanId));
          }
      

      creates a new SFSB session instead of reusing the reference

          public EnterpriseBeanProxyMethodHandler(SessionBean<T> bean) {
              this.bean = bean;
              this.manager = bean.getBeanManager();
              this.beanId = bean.getIdentifier();
              this.reference = bean.createReference();
              BeanLogger.LOG.createdSessionBeanProxy(bean);
          }
      

      Introduced by commit 5b314063996383c64b5dd2ff0f8d3443b037bd1d

      https://github.com/weld/core/commit/5b314063996383c64b5dd2ff0f8d3443b037bd1d

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rhusar Radoslav Husar
              Reporter:
              rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: