Package org.mule.component

Examples of org.mule.component.DefaultJavaComponent


    public Service initialiseService(byte txBeginAction, EventCallback callback) throws Exception
    {
        Service service = new SedaService(muleContext);
        ((AbstractService) service).setExceptionListener(new DefaultMessagingExceptionStrategy(muleContext));
        service.setName("testComponent");
        service.setComponent(new DefaultJavaComponent(new PrototypeObjectFactory(JdbcFunctionalTestComponent.class)));

        TransactionFactory tf = getTransactionFactory();
        TransactionConfig txConfig = new MuleTransactionConfig(txBeginAction);
        txConfig.setFactory(tf);
       
View Full Code Here


        assertEquals("Accepts inbound messages", getDocDescription(in));
        FlowConstruct flow = muleContext.getRegistry().lookupFlowConstruct("Bridge");
        assertNotNull(flow);
        assertEquals("Bridge flow", getDocName(flow));
        assertEquals("Main flow", getDocDescription(flow));
        DefaultJavaComponent echo = muleContext.getRegistry().lookupByType(DefaultJavaComponent.class).values().iterator().next();
        assertEquals("echo", getDocName(echo));
        ImmutableEndpoint ep = (ImmutableEndpoint) ((Flow)flow).getMessageSource();
        assertNotNull(ep);
        assertEquals("inbound flow endpoint", getDocName(ep));
        assertNull("Accepts inbound messages", getDocDescription(ep));
View Full Code Here

                latch.countDown();
            }
        });
        testComponent.initialise();

        final DefaultJavaComponent component = new DefaultJavaComponent(new SingletonObjectFactory(testComponent));
        component.setMuleContext(muleContext);
        service.setComponent(component);
        service.setModel(muleContext.getRegistry().lookupSystemModel());
        muleContext.getRegistry().registerService(service);
        return latch;
    }
View Full Code Here

TOP

Related Classes of org.mule.component.DefaultJavaComponent

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.