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

EnterpriseBeanProxyMethodHandler creates a new SFSB session on failover

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.0.CR1
    • 2.1.2.Final, 2.2.0.Beta2
    • Clustering
    • None

      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

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: