How to use multiple URI mappings for one JAX-WS endpoint in EAP 6

Solution Unverified - Updated -

Issue

  • In EAP 5 our EJB/SLSB web service can be retrieved from the following three URLs:

    /ws/services/hello
    /ws/services_/hello
    /ws/local/hello
    

    We configured three webservice beans in ejb-jar.xml. How do we do the same in EAP 6?

  • I set up my JAX-WS endpoint to map to three different URIs:

    <servlet>
      <servlet-name>HelloEndpoint</servlet-name>
      <servlet-class>com.redhat.gss.HelloEndpoint</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>HelloEndpoint</servlet-name>
      <url-pattern>/services/hello</url-pattern>
      <url-pattern>/services_/hello</url-pattern>
      <url-pattern>/local/hello</url-pattern>
    </servlet-mapping>
    

    But I get a CXF exception saying it cannot obtain a destination for /<context-root>/local/hello.

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x

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