Search in sources :

Example 1 with HelloWorldServiceAppCorrelationIDNoPrefix

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

the class JMSSharedQueueTest method testTwoWayQueueAppCorrelationIDNoPrefix.

/* TO DO:
     * This tests shows a missing QoS. When CXF clients share a named (persistent) reply queue
     *  with an application provided correlationID there will be a guaranteed response
     * message loss.
     *
     * A large number of threads is used to ensure message loss and avoid a false
     * positive assertion
     */
@Test
public void testTwoWayQueueAppCorrelationIDNoPrefix() throws Throwable {
    QName serviceName = new QName(SERVICE_NS, "HelloWorldServiceAppCorrelationIDNoPrefix");
    QName portName = new QName(SERVICE_NS, "HelloWorldPortAppCorrelationIDNoPrefix");
    URL wsdl = getWSDLURL(WSDL);
    HelloWorldServiceAppCorrelationIDNoPrefix service = new HelloWorldServiceAppCorrelationIDNoPrefix(wsdl, serviceName);
    HelloWorldPortType port = markForClose(service.getPort(portName, HelloWorldPortType.class, cff));
    Collection<ClientRunnable> clients = new ArrayList<>();
    for (int i = 0; i < 1; ++i) {
        clients.add(new ClientRunnable(port));
    }
    executeAsync(clients);
}
Also used : HelloWorldServiceAppCorrelationIDNoPrefix(org.apache.cxf.hello_world_jms.HelloWorldServiceAppCorrelationIDNoPrefix) 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 HelloWorldServiceAppCorrelationIDNoPrefix (org.apache.cxf.hello_world_jms.HelloWorldServiceAppCorrelationIDNoPrefix)1 AbstractVmJMSTest (org.apache.cxf.systest.jms.AbstractVmJMSTest)1 Test (org.junit.Test)1