public void setUp() throws Exception {
if (JmsTestCase.server == null) {
synchronized (JmsTestCase.mutex) {
if (JmsTestCase.server == null) {
MessagingServer ms = new MessagingServer(new ConfigImpl(
"./config/mom4j-config.xml"));
JmsTestCase.server = ms.start(false);
if (!JmsTestCase.server.hasTopic("testTopic")) {
JmsTestCase.server.createTopic("testTopic");
}
}
}