@Policy annotation is not recognized in EAP 6

Solution Verified - Updated -

Issue

  • Is their some way to enable webservice security with UsernameToken and a security-domain for an endpoint without to put a WSDL into the deployment?
  • We added the @org.apache.cxf.annotations.Policy to the endpoint as the following,
@Policy(placement = Policy.Placement.SERVICE_PORT, uri = "policies:wspolicy.xml")
public class ExampleServiceImpl implements ExampleService{
  • The annotation @Policy seems to be ignored, because webservice security is not taken into account.

  • If we add a static wsdl.xml to the deployment containing the declarations from "wspolicy.xml" then webservice security works perfectly.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)

    • 6.1.0
    • 6.1.1
    • 6.0.1
    • 6.0.0
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content