"HelloWorldPortAppCorrelationIDSales"));
URL wsdl = getClass().getResource("/wsdl/jms_test.wsdl");
assertNotNull(wsdl);
HelloWorldServiceAppCorrelationID service =
new HelloWorldServiceAppCorrelationID(wsdl, serviceName);
assertNotNull(service);
ClientRunnable engClient =
new ClientRunnable(service.getPort(portNameEng, HelloWorldPortType.class),
new CorrelationIDFactory() {
private int counter;
public String createCorrealtionID() {
return "com.mycompany.eng:" + counter++;
}
});
ClientRunnable salesClient =
new ClientRunnable(service.getPort(portNameSales, HelloWorldPortType.class),
new CorrelationIDFactory() {
private int counter;
public String createCorrealtionID() {
return "com.mycompany.sales:" + counter++;
}