AbstractStatelessSessionBean missing from SpringFramework 4

1.6k views Asked by At

I'm trying to update a big projekt from Spring 2 to Spring 4. On the deep end of the Beans hierarchy i found a class called CustomAbstractStatelessSessionBean and that extends the AbstractStatelessSessionBean class from org.springframework.ejb.support.AbstractStatelessSessionBean.

The content of the class:

public abstract class CustomAbstractStatelessSessionBean extends

AbstractStatelessSessionBean{

    /**
     * 
     */
    private static final long serialVersionUID = -8467612263077285422L;

    @Override
    public void setSessionContext(SessionContext sessionContext) {
        LocalSlsbInvokerInterceptor asd =new LocalSlsbInvokerInterceptor;

        super.setSessionContext(sessionContext);

        setBeanFactoryLocatorKey("global.spring.ejb.context");
        setBeanFactoryLocator(SingletonBeanFactoryLocator.getInstance());
    }
}

Be patient Spring rookie here! :D

Every idea or workaround is welcomed!

1

There are 1 answers

0
hEngi On BEST ANSWER

Simplest way is to find the source of the spring classes and copy it. It was a very thin layer between the spring class and the real javax classes :)