Examples of EJBComponent


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

    }

    @Override
    protected <T> StatefulEJBLocator<T> openSession(EJBReceiverContext context, Class<T> viewType, String appName, String moduleName, String distinctName, String beanName) throws IllegalArgumentException {
        final EjbDeploymentInformation ejbInfo = findBean(appName, moduleName, distinctName, beanName);
        final EJBComponent component = ejbInfo.getEjbComponent();
        if (!(component instanceof StatefulSessionComponent)) {
            throw new IllegalArgumentException("EJB " + beanName + " is not a Stateful Session bean in app: " + appName + " module: " + moduleName + " distinct name:" + distinctName);
        }
        final StatefulSessionComponent statefulComponent = (StatefulSessionComponent) component;
        final SessionID sessionID = statefulComponent.createSession();
View Full Code Here

Examples of org.jboss.ejb3.context.spi.EJBComponent

        @Override
        public Object getInstance() {
            // get the current invocation context and the EJBComponent out of it
            final InvocationContext currentInvocationContext = CurrentInvocationContext.get();
            final EJBComponent ejbComponent = currentInvocationContext.getComponent();
            if (ejbComponent == null) {
                throw new IllegalStateException("EJBComponent has not been set in the current invocation context " + currentInvocationContext);
            }
            return ejbComponent.getTimerService();
        }
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.