i have a service which will frame a document and publishes to broker/local IS.
now this service is configured as a startup service for certain package.
the problem comes when i restart the server, upon package load, it executes the service, and then it executes the startup service. now since this service will publish docs, and by this time the dispatcher is not initialized, it fails with an exception.
is there a way where in i will start the service execution on package load only after i know that dispatcher is started…?