Package org.mule.jbi.framework

Examples of org.mule.jbi.framework.JbiContainerImpl


  protected JbiContainer container;
 
  protected void setUp() throws Exception {
    IOUtils.deleteFile(new File("target/.mule-jbi"));
    JbiContainerImpl jbi = new JbiContainerImpl();
    jbi.setWorkingDir(new File("target/.mule-jbi"));
    jbi.start();
    container = jbi;
  }
View Full Code Here


public class InstallationServiceTestCase extends AbstractFunctionalTestCase {

 
  public void setUp() throws Exception {
    IOUtils.deleteFile(new File("target/.mule-jbi"));
    JbiContainerImpl jbi = new JbiContainerImpl();
    jbi.setWorkingDir(new File("target/.mule-jbi"));
    jbi.initialize();
    jbi.start();
    container = jbi;
  }
View Full Code Here

 
  public void setUp() throws Exception {
    // Remove jbi workspace
    //IOUtils.deleteFile(new File("target/.mule-jbi"));
    // Create jbi container
    JbiContainerImpl jbi = new JbiContainerImpl();
    jbi.setWorkingDir(new File("target/.mule-jbi"));
    container = jbi;
    // Initialize jbi
    container.initialize();
    // Create components
    provider = new TestComponent("provider");
View Full Code Here

  public static final QName SERVICE_NAME = new QName("http://jbi.mule.org", "myService");
  public static final String ENDPOINT_NAME = "myEndpoint";

  public void test() throws Exception {
    JbiContainerImpl container = new JbiContainerImpl();
    container.setWorkingDir(new File("target/.mule-jbi"));
    // Initialize jbi
    container.initialize();
    // Create components
    AgilaComponent provider = new AgilaComponent();
    TestComponent consumer = new TestComponent();
    // Register components
    container.getRegistry().addTransientEngine("consumer", consumer);
    Engine agila = container.getRegistry().addTransientEngine("provider", provider, new AgilaBootstrap());
    // Start jbi
    container.start();
    // Deploy service unit
    URL url = Thread.currentThread().getContextClassLoader().getResource("loanbroker/process.xml");
    File loanbroker = new File(url.toURI()).getParentFile();
    container.getRegistry().addTransientUnit("loanbroker", agila, loanbroker.getAbsolutePath());
    // Send message exchange
    MessageExchangeFactory mef = consumer.getChannel().createExchangeFactory();
    InOnly me = mef.createInOnlyExchange();
    me.setInterfaceName(new QName("http://www.apache.org/agila/samples/exemple1/definition/", "loanService"));
    me.setOperation(new QName("http://www.apache.org/agila/samples/exemple1/definition/", "request"));
View Full Code Here

TOP

Related Classes of org.mule.jbi.framework.JbiContainerImpl

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.