use of org.jboss.as.test.integration.common.jms.JMSOperations in project wildfly by wildfly.
the class JmsClientTestCase method setUp.
@Before
public void setUp() throws IOException {
JMSOperations jmsOperations = JMSOperationsProvider.getInstance(managementClient);
jmsOperations.createJmsQueue(QUEUE_NAME, EXPORTED_QUEUE_NAME);
}
use of org.jboss.as.test.integration.common.jms.JMSOperations in project wildfly by wildfly.
the class ReplicatedFailoverTestCase method setUpServer2.
@Override
protected void setUpServer2(ModelControllerClient client) throws Exception {
configureCluster(client);
// /subsystem=messaging-activemq/server=default/ha-policy=replication-slave:add(cluster-name=my-cluster, restart-backup=true)
ModelNode operation = new ModelNode();
operation.get(OP_ADDR).add("subsystem", "messaging-activemq");
operation.get(OP_ADDR).add("server", "default");
operation.get(OP_ADDR).add("ha-policy", "replication-slave");
operation.get(OP).set(ADD);
operation.get("cluster-name").set("my-cluster");
operation.get("restart-backup").set(true);
execute(client, operation);
JMSOperations jmsOperations = JMSOperationsProvider.getInstance(client);
jmsOperations.createJmsQueue(jmsQueueName, "java:jboss/exported/" + jmsQueueLookup);
}
use of org.jboss.as.test.integration.common.jms.JMSOperations in project wildfly by wildfly.
the class ReplicatedFailoverTestCase method setUpServer1.
@Override
protected void setUpServer1(ModelControllerClient client) throws Exception {
configureCluster(client);
// /subsystem=messaging-activemq/server=default/ha-policy=replication-master:add(cluster-name=my-cluster, check-for-live-server=true)
ModelNode operation = new ModelNode();
operation.get(OP_ADDR).add(SUBSYSTEM, "messaging-activemq");
operation.get(OP_ADDR).add("server", "default");
operation.get(OP_ADDR).add("ha-policy", "replication-master");
operation.get(OP).set(ADD);
operation.get("cluster-name").set("my-cluster");
operation.get("check-for-live-server").set(true);
execute(client, operation);
JMSOperations jmsOperations = JMSOperationsProvider.getInstance(client);
jmsOperations.createJmsQueue(jmsQueueName, "java:jboss/exported/" + jmsQueueLookup);
}
use of org.jboss.as.test.integration.common.jms.JMSOperations in project wildfly by wildfly.
the class SharedStoreFailoverTestCase method setUpServer2.
@Override
protected void setUpServer2(ModelControllerClient client) throws Exception {
// /subsystem=messaging-activemq/server=default/ha-policy=shared-store-slave:add(restart-backup=true)
ModelNode operation = new ModelNode();
operation.get(OP_ADDR).add("subsystem", "messaging-activemq");
operation.get(OP_ADDR).add("server", "default");
operation.get(OP_ADDR).add("ha-policy", "shared-store-slave");
operation.get(OP).set(ADD);
operation.get("restart-backup").set(true);
execute(client, operation);
configureSharedStore(client);
JMSOperations jmsOperations = JMSOperationsProvider.getInstance(client);
jmsOperations.createJmsQueue(jmsQueueName, "java:jboss/exported/" + jmsQueueLookup);
}
use of org.jboss.as.test.integration.common.jms.JMSOperations in project wildfly by wildfly.
the class SharedStoreFailoverTestCase method setUpServer1.
@Override
protected void setUpServer1(ModelControllerClient client) throws Exception {
// /subsystem=messaging-activemq/server=default/ha-policy=shared-store-master:add(failover-on-server-shutdown=true)
ModelNode operation = new ModelNode();
operation.get(OP_ADDR).add("subsystem", "messaging-activemq");
operation.get(OP_ADDR).add("server", "default");
operation.get(OP_ADDR).add("ha-policy", "shared-store-master");
operation.get(OP).set(ADD);
operation.get("failover-on-server-shutdown").set(true);
execute(client, operation);
configureSharedStore(client);
JMSOperations jmsOperations = JMSOperationsProvider.getInstance(client);
jmsOperations.createJmsQueue(jmsQueueName, "java:jboss/exported/" + jmsQueueLookup);
}
Aggregations