Examples of EjbComponentInstance


Examples of org.jboss.as.ejb3.component.EjbComponentInstance

        this.pool = ((PooledComponent<EjbComponentInstance>) ejbComponent).getPool();
    }

    @Override
    public void callTimeout(final Timer timer, final Method timeoutMethod) throws Exception {
        final EjbComponentInstance instance = acquireInstance();
        boolean discarded = false;
        try {
            instance.invokeTimeoutMethod(timeoutMethod, timer);
        } catch (Exception ex) {
            // Detect app exception
            if (ejbComponent.getApplicationException(ex.getClass(), timeoutMethod) != null) {
                // it's an application exception, just throw it back.
                throw ex;
View Full Code Here

Examples of org.jboss.as.ejb3.component.EjbComponentInstance

            }
        }
    }

    private EjbComponentInstance acquireInstance() {
        final EjbComponentInstance instance;
        if (pool != null) {
            instance = pool.get();
        } else {
            instance = (EjbComponentInstance) ejbComponent.createInstance();
        }
View Full Code Here

Examples of org.jboss.as.ejb3.component.EjbComponentInstance

        return deploymentString + "." + ejbComponent.getComponentName();
    }

    @Override
    public void callTimeout(final Timer timer) throws Exception {
        final EjbComponentInstance instance = acquireInstance();
        try {
            instance.invokeTimeoutMethod(timer);
        } finally {
            releaseInstance(instance);
        }
    }
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.