I'm trying to use the @Oneway-Annotation in a CXF Serviceinterface using
Spring.  @OneWay (camelCase) doesn't exist, so I think, it's a fault in the
CXF docu? (
http://cwiki.apache.org/CXF20DOC/developing-a-service.html#developingaservice-the%257b%2...@oneway%257d%257dannotation
) 
I import javax.jws.Oneway, however the annotation seems to be ignored?!

/************************ WS-Interface
**************************************/
WebService(name = "LockService", targetNamespace = "foo")
public interface LockService {

@WebMethod()
@Oneway()
public void oneWayTest();
}

/************************** WS-Impl ***************************************/
public class LockServiceImpl implements LockService {
    public void oneWayTest() {
        try {
            Thread.sleep(4000);
        } catch (InterruptedException e) {
            System.out.println("+++++++++ Interrupted exception");
        }
}
/***************************** Spring-Config
*********************************/
<!-- Bean -->
<bean id="lockService" class="foo.service.LockServiceImpl"/>

<!-- Endpoints -->
<jaxws:endpoint id="lockServiceEndpoint" implementor="#lockService"
address="/LockService" />

The WS-Client still waits 4sec until he returns...
-- 
View this message in context: 
http://www.nabble.com/%40Oneway-and-%40OneWay-difference-or-fault-in-documentation-tp21953694p21953694.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to