Committing the fixes done for tasks not executed during server startup issue ESBJAVA-3411

Fixing the issue of tasks not executed during serverv startup ESBJAVA-3411