conf.getAcceptorConfigurations().add(new TransportConfiguration(InVMAcceptorFactory.class.getName()));
server = HornetQServers.newHornetQServer(conf, mbeanServer, false);
context = new InVMContext();
JMSStorageManager storage = new JMSJournalStorageManagerImpl(new TimeAndCounterIDGenerator(),
server.getConfiguration(),
server.getReplicationManager());
serverManager = new JMSServerManagerImpl(server, null, storage);
serverManager.setContext(context);