CXF WSDL first SSL multiple service instances in Servicemix

Solution Unverified - Updated -

Issue

Given:

    SpringBusFactory bf = new SpringBusFactory();
    URL busFile = Server.class.getResource("/ServerConfig.xml");
    Bus bus = bf.createBus(busFile.toString());
    BusFactory.setDefaultBus(bus);

    Object implementor = new GreeterImpl();
    String address = "https://localhost:9001/SoapContext/SoapPort";
    Endpoint.publish(address, implementor);

SSL is configured by setting the default bus from the config file. From reading CXF documentation, setDefaultBus sets the Global Default Bus. If my bundle does this it will affect all bundles in Servicemix that pull from the Default Global Bus.

Will using set/getThreadDefaultBus gurantee that I won't be modify the Bus from deployed in another Bundle? I need to be 100% sure this will NOT occur. Can you guantee a way to do that?

Environment

Fuse ESB 4.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.