Author: asoldano
Date: 2014-03-06 04:28:41 -0500 (Thu, 06 Mar 2014)
New Revision: 18464
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/JavaFirstServiceImpl.java
Log:
Use @EndpointProperty annotation instead of @EndpointConfig to have an example of endpoint
not using JBoss annotations
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/JavaFirstServiceImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/JavaFirstServiceImpl.java 2014-03-05
10:52:15 UTC (rev 18463)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/JavaFirstServiceImpl.java 2014-03-06
09:28:41 UTC (rev 18464)
@@ -23,8 +23,9 @@
import javax.jws.WebService;
+import org.apache.cxf.annotations.EndpointProperties;
+import org.apache.cxf.annotations.EndpointProperty;
import org.apache.cxf.annotations.Policy;
-import org.jboss.ws.api.annotation.EndpointConfig;
@WebService
(
@@ -34,7 +35,10 @@
targetNamespace =
"http://www.jboss.org/jbossws/ws-extensions/wssecuritypolicy"
)
@Policy(placement = Policy.Placement.BINDING, uri = "JavaFirstPolicy.xml")
-@EndpointConfig(configFile = "WEB-INF/jaxws-endpoint-config.xml", configName =
"Custom WS-Security Endpoint")
+@EndpointProperties(value = {
+ @EndpointProperty(key = "ws-security.callback-handler", value =
"org.jboss.test.ws.jaxws.samples.wsse.policy.basic.ServerUsernamePasswordCallback")
+ }
+)
public class JavaFirstServiceImpl //Not extending JavaFirstServiceIface for testing
purposes only, to avoid having to
//move the @Policy annotation in the interface, which
is also used on client side.
{
Show replies by date