Examples of EasyBeansSLSB


Examples of org.ow2.easybeans.api.bean.EasyBeansSLSB

    public EJBResponse localCall(final EJBLocalRequest localCallRequest) {

        // build EJB Response and set the id
        EJBResponse ejbResponse = new JEJBResponse();

        EasyBeansSLSB bean = null;
        try {
            bean = getBean(null);
        } catch (IllegalArgumentException e) {
            ejbResponse.setRPCException(new RPCException("Cannot get element in the pool", e));
            return ejbResponse;
View Full Code Here

Examples of org.ow2.easybeans.api.bean.EasyBeansSLSB

            logger.warn("Received a timer call but the factory has been stopped, so ignore this call");
            return;
        }

        // Call the EasyBeans timer method on a given bean instance
        EasyBeansSLSB bean = null;
        bean = getBean(null);

        //set ClassLoader
        ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader(getContainer().getClassLoader());

        // Call the timer method on the bean
        try {
            bean.timeoutCallByEasyBeans(timer);
        } finally {
            // Reset classloader
            Thread.currentThread().setContextClassLoader(oldClassLoader);

            // push back into the pool
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.