Issue Type: Bug Bug
Affects Versions: 2.2.0.Beta2, 2.1.2.Final
Assignee: Jozef Hartinger
Components: Clustering
Created: 27/Mar/14 9:00 PM
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

Project: Weld
Priority: Major Major
Reporter: Radoslav Husar
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira