/** @throws Exception */
  protected Queue createQueue(final String name) throws Exception {
    jmsServer2.createQueue(false, name, null, true, "/queue/" + name);
    jmsServer1.createQueue(false, name, null, true, "/queue/" + name);

    assertTrue(waitForBindings(server1, "jms.queue." + name, false, 1, 0, 10000));
    assertTrue(waitForBindings(server2, "jms.queue." + name, false, 1, 0, 10000));

    return (Queue) context1.lookup("/queue/" + name);
  }
예제 #2
0
  /** @throws Exception */
  protected Queue createQueue(final boolean storeConfig, final String queueName) throws Exception {
    jmsServer.createQueue(storeConfig, queueName, null, true, "/jms/" + queueName);

    return (Queue) namingContext.lookup("/jms/" + queueName);
  }