public static void startup() throws Exception
{
deployment = EmbeddedContainer.start();
manager = new MessageServiceManager();
manager.start();
deployment.getRegistry().addSingletonResource(manager.getQueueManager().getDestination());
deployment.getRegistry().addSingletonResource(manager.getTopicManager().getDestination());
deployment.getRegistry().addPerRequestResource(Receiver.class);