protected Topic createTopic(final String name, boolean durable) throws Exception {
    jmsServer2.createTopic(durable, name, "/topic/" + name);
    jmsServer1.createTopic(durable, name, "/topic/" + name);

    return (Topic) context1.lookup("/topic/" + name);
  }
Пример #2
0
  protected Topic createTopic(final boolean storeConfig, final String topicName) throws Exception {
    jmsServer.createTopic(storeConfig, topicName, "/jms/" + topicName);

    return (Topic) namingContext.lookup("/jms/" + topicName);
  }