Package org.apache.servicemix.jbi.container

Examples of org.apache.servicemix.jbi.container.JBIContainer


        JdbcStoreFactory storeFactory = new JdbcStoreFactory();
        storeFactory.setDataSource(dataSource);
        storeFactory.setTransactional(true);
        store = storeFactory.open("store");
       
        jbi = new JBIContainer();
        jbi.setFlows(new Flow[] {new SedaFlow(), new JCAFlow(jmsURL) });
        jbi.setEmbedded(true);
        jbi.setUseMBeanServer(false);
        jbi.setCreateMBeanServer(false);
        jbi.setTransactionManager(tm);
View Full Code Here


    private DefaultServiceMixClient client;
    private InOut io;
    private JBIContainer container;
   
    protected void setUp() throws Exception {
        container = new JBIContainer();
        container.setUseMBeanServer(false);
        container.setCreateMBeanServer(false);
        container.setMonitorInstallationDirectory(false);
        container.setNamingContext(new InitialContext());
        container.setEmbedded(true);
View Full Code Here

            System.err.println("Caught: " + e);
            e.printStackTrace();
        }
    }
    protected void setUp() throws Exception {
        container = new JBIContainer();
        container.setUseMBeanServer(useJmx);
        container.setCreateMBeanServer(useJmx);
        container.setMonitorInstallationDirectory(false);
        container.setNamingContext(new InitialContext());
        container.setEmbedded(true);
View Full Code Here

    private DroolsComponent drools;
    private ServiceMixClient client;
   
    protected void setUp() throws Exception {
        super.setUp();
        jbi = new JBIContainer();
        jbi.setEmbedded(true);
        jbi.init();
        client = new DefaultServiceMixClient(jbi);
    }
View Full Code Here

        installDir.mkdir();
        txm = new EmbeddedGeronimoFactory().getTransactionManager();
        odeDir = new File(installDir, "ODE");
        odeDir.mkdir();

        container = new JBIContainer();
        container.setUseMBeanServer(false);
        container.setInstallationDirPath(installDir.getAbsolutePath());
        container.setDeploymentDirPath(odeDir.getAbsolutePath());
        container.setRootDir(rootDir.getAbsolutePath());
        container.setCreateMBeanServer(false);
View Full Code Here

    protected void setUp() throws Exception {
        BrokerFactoryBean bfb = new BrokerFactoryBean(new ClassPathResource("broker.xml"));
        bfb.afterPropertiesSet();
        broker = bfb.getBroker();
        broker.start();
        container = new JBIContainer();
        container.setMonitorInstallationDirectory(false);
        container.setUseMBeanServer(false);
        container.setCreateMBeanServer(false);
        container.setEmbedded(true);
        container.setFlowName("jms?jmsURL=tcp://localhost:61626");
View Full Code Here

            container = null;
        }
    }

    private JBIContainer createContainer() throws GBeanNotFoundException {
        JBIContainer container = new JBIContainer();
       
        container.setUseShutdownHook(false);
        container.setName(name);
        container.setRootDir(directory);
        container.setUseMBeanServer(true);
        TransactionManager tm = getTransactionManager();
        container.setTransactionManager(tm);
        container.setMonitorInstallationDirectory(false);
        container.setMonitorDeploymentDirectory(false);
       
        container.setPersistent(persistent);
       
        if (flows != null) {
            container.setFlows(getFlows());
        }

        return container;
    }
View Full Code Here

public abstract class AbstractPersistenceTest extends AbstractTransactionTest {

    private static final transient Logger LOGGER = LoggerFactory.getLogger(AbstractPersistenceTest.class);

    protected JBIContainer createJbiContainer(String name) throws Exception {
        JBIContainer container = new JBIContainer();
        container.setTransactionManager(tm);
        container.setName(name);
        container.setFlow(createFlow());
        container.setPersistent(true);
        container.setMonitorInstallationDirectory(false);
        container.init();
        container.start();
        return container;
    }
View Full Code Here

    protected JBIContainer container;
    protected OutBinding out;
    protected ServiceMixClient client;

    protected void setUp() throws Exception {
        container = new JBIContainer();
        container.setEmbedded(true);
        container.init();
        container.start();
        out = new OutBinding() {
            protected void process(MessageExchange exchange, NormalizedMessage message) throws MessagingException {
View Full Code Here

        shutdownContainer();
        if (clean) {
            Thread.sleep(1000);
            assertTrue(FileUtil.deleteFile(new File("target/testWDR")));
        }
        container = new JBIContainer();
        container.setRootDir("target/testWDR");
        initContainer();
        container.init();
        container.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.jbi.container.JBIContainer

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.