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);
}
Aggregations