Package org.apache.webbeans.ejb

Examples of org.apache.webbeans.ejb.EjbPlugin


                {
                    super.beforeStartApplication(object);
                    try
                    {
                        PluginLoader.getInstance().startUp();
                        EjbPlugin plugin = (EjbPlugin) PluginLoader.getInstance().getEjbPlugin();
                        plugin.setUseInTest(true);
                    }
                    catch (Throwable e)
                    {
                        // Not worry
                    }
View Full Code Here


            this.lifeCycle.stopApplication(null);
            this.lifeCycle = null;

            try
            {
                EjbPlugin plugin = (EjbPlugin) PluginLoader.getInstance().getEjbPlugin();
                plugin.setUseInTest(false);
            }
            catch (Throwable e)
            {
                // Not worry
            }
View Full Code Here

            properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, InitContextFactory.class.getName());
            new InitialContext(properties);

            try
            {
                EjbPlugin plugin = (EjbPlugin) PluginLoader.getInstance().getEjbPlugin();
                plugin.setUseInTest(true);
            }
            catch (Throwable e)
            {
                // Not worry
            }
View Full Code Here

            
                resource = lookupFieldResource(context, "openejb/Deployment/"+ name, resourceReference.getResourceType());               
            }           
            else
            {
                EjbPlugin plugin =(EjbPlugin) PluginLoader.getInstance().getEjbPlugin();
                return plugin.getEjbInstance(intf, resourceReference.getResourceType());               
            }
        }
        else if(resourceReference.supports(WebServiceRef.class))
        {
            WebServiceRef annotation = resourceReference.getAnnotation(WebServiceRef.class);
View Full Code Here

    @Test
    @SuppressWarnings("unchecked")
    public void testLocalMethod()
    {
        EjbPlugin plugin = new EjbPlugin();
        boolean value = plugin.isSessionBean(SimpleBean.class);
       
        Assert.assertTrue(value);
       
        GProcessAnnotatedType annotatedType = new GProcessAnnotatedType(AnnotatedElementFactory.getInstance().newAnnotatedType(SimpleBean.class));
       
        OpenEjbBean<SimpleBean> bean = (OpenEjbBean<SimpleBean>)plugin.defineSessionBean(SimpleBean.class, annotatedType);
        Assert.assertNotNull(bean);
       
       
       
    }
View Full Code Here

    @Test
    @SuppressWarnings("unchecked")
    public void testLocalMethod()
    {
        EjbPlugin plugin = new EjbPlugin();
        boolean value = plugin.isSessionBean(SimpleBean.class);
       
        Assert.assertTrue(value);
       
        GProcessAnnotatedType annotatedType = new GProcessAnnotatedType(AnnotatedElementFactory.newAnnotatedType(SimpleBean.class));
       
        OpenEjbBean<SimpleBean> bean = (OpenEjbBean<SimpleBean>)plugin.defineSessionBean(SimpleBean.class, annotatedType);
        Assert.assertNotNull(bean);
       
       
       
    }
View Full Code Here

    }

    @Test
    public void testLocalMethod()
    {
        EjbPlugin plugin = new EjbPlugin();
        boolean value = plugin.isSessionBean(SimpleBean.class);
       
        Assert.assertTrue(value);
       
        EjbBean<SimpleBean> bean = (EjbBean<SimpleBean>)plugin.defineSessionBean(SimpleBean.class);
        Assert.assertNotNull(bean);
       
       
       
    }
View Full Code Here

                {
                    super.beforeStartApplication(object);
                    try
                    {
                        WebBeansContext.getInstance().getPluginLoader().startUp();
                        EjbPlugin plugin = (EjbPlugin) WebBeansContext.getInstance().getPluginLoader().getEjbPlugin();
                        plugin.setUseInTest(true);
                    }
                    catch (Exception e)
                    {
                        // Not worry
                    }
View Full Code Here

            this.lifeCycle.stopApplication(null);
            this.lifeCycle = null;

            try
            {
                EjbPlugin plugin = (EjbPlugin) WebBeansContext.getInstance().getPluginLoader().getEjbPlugin();
                plugin.setUseInTest(false);
            }
            catch (Exception e)
            {
                // Not worry
            }
View Full Code Here

            System.setProperty("openejb.validation.output.level", "VERBOSE");
            Properties properties = new Properties(System.getProperties());
            properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, InitContextFactory.class.getName());
            new InitialContext(properties);

            EjbPlugin plugin = (EjbPlugin) WebBeansContext.getInstance().getPluginLoader().getEjbPlugin();
            if (plugin != null)
            {
                plugin.setUseInTest(true);
            }

        }
        catch (Exception e)
        {
View Full Code Here

TOP

Related Classes of org.apache.webbeans.ejb.EjbPlugin

Copyright © 2018 www.massapicom. 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.