Skip to content

How to start single services/ports based on configuration? #68

Description

@RobertZenz

I have the following situation at hand: The goal is to develop a contract-first application with a given WSDL file (changes to the definition/schema/requirements are out of the question, close to impossible I might even say). The WSDL is defining one service with two ports and is structured like this:

<service name="SomeService">
    <port name="PortA" binding="ns:ABinding">
        <soap12:address location="http://nobodycares" />
    </port>
    <port name="PortB" binding="ns:BBinding">
        <soap12:address location="http://nobodycares" />
    </port>
</service>

Generating classes from this definition/schema is all set and working, the problem arises when wanting to start these ports. The requirements make it necessary to only start one port at a time or to start them on different network ports (to make sure that they are reachable only from different parts of the network).

Is that somehow possible with the automatic wiring of cxf-spring or is the easiest way to deactivate the automatic initialization and create the EndpointImpl instances manually?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions