// 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();