Package org.activemq.spring

Examples of org.activemq.spring.BrokerFactoryBean


public class JcaFlowTransactionTest extends AbstractClusteredTransactionTest {

  protected BrokerContainer broker;
   
    protected void setUp() throws Exception {
        BrokerFactoryBean bfb = new BrokerFactoryBean();
        bfb.setConfig(new ClassPathResource("org/servicemix/jbi/nmr/flow/jca/broker.xml"));
        bfb.afterPropertiesSet();
        broker = (BrokerContainer) bfb.getObject();
        super.setUp();
    }
View Full Code Here


public class JcaFlowPersistentTest extends AbstractPersistenceTest {

  protected BrokerContainer broker;
   
    protected void setUp() throws Exception {
        BrokerFactoryBean bfb = new BrokerFactoryBean();
        bfb.setConfig(new ClassPathResource("org/servicemix/jbi/nmr/flow/jca/broker.xml"));
        bfb.afterPropertiesSet();
        broker = (BrokerContainer) bfb.getObject();
        super.setUp();
    }
View Full Code Here

        gtmfb.setTransactionContextManager(tcm);
        gtmfb.afterPropertiesSet();
        TransactionManager tm = (TransactionManager) gtmfb.getObject();
        tt = new TransactionTemplate(new JtaTransactionManager((UserTransaction) tm));
      
        BrokerFactoryBean bfb = new BrokerFactoryBean();
        bfb.setConfig(new ClassPathResource("org/servicemix/jbi/nmr/flow/jca/broker.xml"));
        bfb.afterPropertiesSet();
        broker = (BrokerContainer) bfb.getObject();
       
        JCAFlow senderFlow = new JCAFlow();
        senderFlow.setJmsURL("tcp://localhost:61216");
        senderFlow.setTransactionContextManager(tcm);
        senderContainer.setTransactionManager(tm);
View Full Code Here

TOP

Related Classes of org.activemq.spring.BrokerFactoryBean

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.