Search in sources :

Example 1 with HelloWorldServiceRuntimeCorrelationIDDynamicPrefix

use of org.apache.cxf.hello_world_jms.HelloWorldServiceRuntimeCorrelationIDDynamicPrefix in project cxf by apache.

the class JMSSharedQueueTest method testTwoWayQueueRuntimeCorrelationDynamicPrefix.

@Test
public void testTwoWayQueueRuntimeCorrelationDynamicPrefix() throws Throwable {
    QName serviceName = new QName(SERVICE_NS, "HelloWorldServiceRuntimeCorrelationIDDynamicPrefix");
    QName portName = new QName(SERVICE_NS, "HelloWorldPortRuntimeCorrelationIDDynamicPrefix");
    URL wsdl = getWSDLURL(WSDL);
    HelloWorldServiceRuntimeCorrelationIDDynamicPrefix service = new HelloWorldServiceRuntimeCorrelationIDDynamicPrefix(wsdl, serviceName);
    HelloWorldPortType port = markForClose(service.getPort(portName, HelloWorldPortType.class, cff));
    Collection<ClientRunnable> clients = new ArrayList<>();
    for (int i = 0; i < 10; ++i) {
        clients.add(new ClientRunnable(port));
    }
    executeAsync(clients);
}
Also used : HelloWorldServiceRuntimeCorrelationIDDynamicPrefix(org.apache.cxf.hello_world_jms.HelloWorldServiceRuntimeCorrelationIDDynamicPrefix) QName(javax.xml.namespace.QName) ArrayList(java.util.ArrayList) HelloWorldPortType(org.apache.cxf.hello_world_jms.HelloWorldPortType) URL(java.net.URL) Test(org.junit.Test) AbstractVmJMSTest(org.apache.cxf.systest.jms.AbstractVmJMSTest)

Aggregations

URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 QName (javax.xml.namespace.QName)1 HelloWorldPortType (org.apache.cxf.hello_world_jms.HelloWorldPortType)1 HelloWorldServiceRuntimeCorrelationIDDynamicPrefix (org.apache.cxf.hello_world_jms.HelloWorldServiceRuntimeCorrelationIDDynamicPrefix)1 AbstractVmJMSTest (org.apache.cxf.systest.jms.AbstractVmJMSTest)1 Test (org.junit.Test)1