Search in sources :

Example 1 with RestAMQConnection

use of org.apache.activemq.artemis.tests.integration.rest.util.RestAMQConnection in project activemq-artemis by apache.

the class RestDeserializationTest method deployAndconfigureRESTService.

private void deployAndconfigureRESTService(String warFileName) throws Exception {
    jmsServer.createTopic(false, "ordersTopic", (String[]) null);
    File warFile = getResourceFile("/rest/" + warFileName, warFileName);
    deployWebApp("/restapp", warFile);
    server.start();
    String uri = server.getURI().toASCIIString();
    System.out.println("Sever started with uri: " + uri);
    restConnection = new RestAMQConnection(uri);
}
Also used : RestAMQConnection(org.apache.activemq.artemis.tests.integration.rest.util.RestAMQConnection) SimpleString(org.apache.activemq.artemis.api.core.SimpleString) File(java.io.File)

Aggregations

File (java.io.File)1 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)1 RestAMQConnection (org.apache.activemq.artemis.tests.integration.rest.util.RestAMQConnection)1