Package org.wso2.carbon.inbound.endpoint
Class EndpointListenerLoader
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.EndpointListenerLoader
-
public class EndpointListenerLoader extends Object
This class is responsible for starting Listeners( like HTTP, HTTPS, HL7) on server startup for Listening Inbound Endpoints.
-
-
Constructor Summary
Constructors Constructor Description EndpointListenerLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadListeners()
Start listeners for all the Listening Inbound Endpoints.
-
-
-
Method Detail
-
loadListeners
public static void loadListeners()
Start listeners for all the Listening Inbound Endpoints. This should be called in the server startup to load all the required listeners for endpoints in all tenants Inbound Endpoint Persistence service need to be up and running before calling this method. So the ServiceBusInitializer activate() method is the ideal place as it guarantee that Inbound Endpoint Persistence Service is activated. We cannot make this a osgi service as this is a fragment of synapse-core. So to make sure persistence service is available, we need to depend on some other technique like the one described above
-
-