Esempio n. 1
0
  protected void setUp() throws Exception {
    super.setUp();
    if (MuleManager.isInstanciated()) {
      MuleManager.getInstance().dispose();
    }
    UMOManager manager = MuleManager.getInstance();
    MuleManager.getConfiguration().setSynchronous(true);
    MuleManager.getConfiguration()
        .getPoolingProfile()
        .setInitialisationPolicy(PoolingProfile.POOL_INITIALISE_ONE_COMPONENT);
    manager.setModel(new SedaModel());

    MuleDescriptor descriptor = createInDescriptor("httpIn", EchoComponent.class.getName());
    manager.getModel().registerComponent(descriptor);
    manager.start();
  }
Esempio n. 2
0
 public void setUp() throws Exception {
   super.setUp();
   if (MuleManager.isInstanciated()) MuleManager.getInstance().dispose();
   MuleXmlConfigurationBuilder builder = new MuleXmlConfigurationBuilder();
   builder.configure("groovy-mule-config.xml");
 }