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, 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