Package org.wso2.carbon.inbound.endpoint
Class EndpointListenerLoader
java.lang.Object
org.wso2.carbon.inbound.endpoint.EndpointListenerLoader
This class is responsible for starting Listeners( like HTTP, HTTPS, HL7) on server startup for
Listening Inbound Endpoints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidStart listeners for all the Listening Inbound Endpoints.
-
Constructor Details
-
EndpointListenerLoader
public EndpointListenerLoader()
-
-
Method Details
-
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
-