1
2
3
4
5
6
7 package org.mule.module.cxf.testmodels;
8
9 import javax.jws.Oneway;
10 import javax.jws.WebMethod;
11 import javax.jws.WebParam;
12 import javax.jws.WebService;
13
14 import edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch;
15
16 @WebService
17 public class AsyncService
18 {
19
20 private CountDownLatch latch = new CountDownLatch(1);
21
22 @WebMethod
23 @Oneway
24 public void send(@WebParam(name = "text") String s)
25 {
26 latch.countDown();
27 }
28
29 @WebMethod(exclude = true)
30 public CountDownLatch getLatch()
31 {
32 return latch;
33 }
34 }