Class 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 Detail

      • EndpointListenerLoader

        public EndpointListenerLoader()
    • 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