jbi.setEmbedded(true);
jbi.setUseMBeanServer(false);
jbi.setCreateMBeanServer(false);
jbi.setTransactionManager(tm);
jbi.setAutoEnlistInTransaction(true);
listener = new ExchangeCompletedListener();
jbi.addListener(listener);
jbi.init();
jbi.start();
client = new DefaultServiceMixClient(jbi);