Examples of StatelessBean


Examples of org.apache.openejb.jee.StatelessBean

        assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
        assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));

        EjbJar ejbJar = new EjbJar();
        ejbJar.addEnterpriseBean(new StatelessBean(FooBean.class));
        assembler.createApplication(config.configureApplication(ejbJar));
       
        Properties properties = new Properties();
        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, LocalInitialContextFactory.class.getName());
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

        return asMap(ejbJarInfo.enterpriseBeans);
    }

    private StatelessBean addBean(Class<?> orangeBeanClass) {
        return ejbJar.addEnterpriseBean(new StatelessBean(orangeBeanClass));
    }
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

        assembler.createContainer(config.configureService(StatefulSessionContainerInfo.class));

        // Setup the descriptor information

        EjbJar ejbJar = new EjbJar();
        ejbJar.addEnterpriseBean(new StatelessBean(BlueStatelessBean.class));
        ejbJar.addEnterpriseBean(new StatefulBean(RedStatefulBean.class));
        ejbJar.addEnterpriseBean(new StatefulBean(LegacyStatefulBean.class));

        assembler.createApplication(config.configureApplication(ejbJar));
    }
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

    public void test() throws Exception {

        EjbJar ejbJar = new EjbJar();

        ejbJar.addEnterpriseBean(new StatelessBean(EjbRefBean.class));

        StatelessBean fooBean = ejbJar.addEnterpriseBean(new StatelessBean(FooBean.class));
        fooBean.setHomeAndRemote(FooEJBHome.class, FooEJBObject.class);
        fooBean.setHomeAndLocal(FooEJBLocalHome.class, FooEJBLocalObject.class);
        fooBean.addBusinessLocal(FooLocal.class.getName());
        fooBean.addBusinessRemote(FooRemote.class.getName());

        List<String> expectedKeys = new ArrayList<String>();
        expectedKeys.add("ann.ejb.ejbObject");
        expectedKeys.add("ann.ejb.ejbLocalObject");
        expectedKeys.add("ann.ejb.beanClass");
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

    private CheckUserTransactionRefs rule;

    @Before
    public void initialize() {
        bean = new StatelessBean("CheeseEjb", "org.acme.CheeseEjb");
        bean.setTransactionType(CONTAINER);

        module = new EjbModule(new EjbJar());
        module.getEjbJar().addEnterpriseBean(bean);
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

        StatefulBean bean = ejbJar.addEnterpriseBean(new StatefulBean(name, ejbClass));
        bean.getEjbLocalRef().add(new EjbLocalRef("child", reference));
    }
   
    private void addStatelessBean(EjbJar ejbJar, Class<?> ejbClass, String name, String reference) {
        StatelessBean bean = ejbJar.addEnterpriseBean(new StatelessBean(name, ejbClass));
        bean.getEjbLocalRef().add(new EjbLocalRef("child", reference));
    }
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

    public static List<Call> calls = new ArrayList<Call>();

    public EjbModule buildTestApp() {
        EjbJar ejbJar = new EjbJar();

        StatelessBean bean = ejbJar.addEnterpriseBean(new StatelessBean(EchoBean.class));
        bean.setServiceEndpoint(EchoServiceEndpoint.class.getName());

        return new EjbModule(this.getClass().getClassLoader(), this.getClass().getSimpleName(), "test", ejbJar, null);
    }
View Full Code Here

Examples of org.apache.openejb.jee.StatelessBean

        statelessContainerInfo.properties.setProperty("StrictPooling", "false");
        assembler.createContainer(statelessContainerInfo);

        // Setup the descriptor information

        StatelessBean bean = new StatelessBean(WidgetBean.class);
        bean.addBusinessLocal(Widget.class.getName());
        bean.addBusinessRemote(RemoteWidget.class.getName());
        bean.setHomeAndRemote(WidgetHome.class, WidgetRemote.class);
        bean.addPostConstruct("init");
        bean.addPreDestroy("destroy");

        EjbJar ejbJar = new EjbJar();
        ejbJar.addEnterpriseBean(bean);

        assembler.createApplication(config.configureApplication(ejbJar));
View Full Code Here

Examples of org.ow2.easybeans.tests.enhancer.annotations.StatelessBean

            list.add(packageName + "StatelessBean" + suffixClass);
            list.add(packageName + "BusinessInterface" + suffixClass);
            ClassesEnhancer.enhance(list, ClassesEnhancer.TYPE.INTERCEPTOR);
            enhancingDone = true;
        }
        this.statelessBean = new StatelessBean();
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.enhancer.interceptors.business.bean.StatelessBean

    protected void setUp() throws Exception {
        if (!enhancingDone) {
            BusinessInterceptorsClassesEnhancer.enhance();
            enhancingDone = true;
        }
        statelessBean = new StatelessBean();
    }
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.