@Override
 public void setup(ManagementClient managementClient, String containerId) throws Exception {
   jmsAdminOperations =
       JMSOperationsProvider.getInstance(managementClient.getControllerClient());
   jmsAdminOperations.createJmsQueue("ejb2x/queue", "java:jboss/ejb2x/queue");
   jmsAdminOperations.createJmsQueue("ejb2x/replyQueueA", "java:jboss/ejb2x/replyQueueA");
   jmsAdminOperations.createJmsQueue("ejb2x/replyQueueB", "java:jboss/ejb2x/replyQueueB");
 }
 @Override
 public void setup(ManagementClient managementClient, String containerId) throws Exception {
   jmsAdminOperations = JMSOperationsProvider.getInstance(managementClient);
   jmsAdminOperations.createJmsQueue(
       "messagedestinationtest/queue", "java:jboss/mdbtest/messageDestinationQueue");
   jmsAdminOperations.createJmsQueue(
       "messagedestinationtest/replyQueue", "java:jboss/mdbtest/messageDestinationReplyQueue");
 }
  @Before
  public void setUp() throws Exception {

    container.start(CONTAINER_0);
    container.start(CONTAINER_1);

    // both servers are started and configured
    assertTrue(container.isStarted(CONTAINER_0));
    assertTrue(container.isStarted(CONTAINER_1));

    try (ModelControllerClient client = createClient1()) {
      JMSOperations jmsOperations = JMSOperationsProvider.getInstance(client);
      jmsOperations.createJmsQueue(jmsQueueName, "java:jboss/exported/" + jmsQueueLookup);
      jmsOperations.createJmsTopic(jmsTopicName, "java:jboss/exported/" + jmsTopicLookup);
    }
    try (ModelControllerClient client = createClient2()) {
      JMSOperations jmsOperations = JMSOperationsProvider.getInstance(client);
      jmsOperations.createJmsQueue(jmsQueueName, "java:jboss/exported/" + jmsQueueLookup);
      jmsOperations.createJmsTopic(jmsTopicName, "java:jboss/exported/" + jmsTopicLookup);
    }
  }
예제 #4
0
 @Override
 public void setup(ManagementClient managementClient, String containerId) throws Exception {
   jmsAdminOperations = JMSOperationsProvider.getInstance(managementClient);
   jmsAdminOperations.createJmsQueue(queueName, "java:jboss/" + queueName);
 }
예제 #5
0
 @Override
 public void setup(final ManagementClient managementClient, final String containerId)
     throws Exception {
   final JMSOperations ops = JMSOperationsProvider.getInstance(managementClient);
   ops.createJmsQueue(QUEUE_NAME, "java:jboss/exported/" + QUEUE_NAME);
 }