Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/src/main/resources/moduleApplicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@
</bean>

<bean id="locationTypeTranslator" class="org.openmrs.module.fhir2.api.translators.impl.LocationTypeTranslatorImpl"/>

<bean id="org.openmrs.module.ugandaemrsync.tasks.SendAnalyticsDataToCentralServerTask"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mwanje how does this get this auto started by declaring it as a bean.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slubwama OpenMRS module doesn't always auto-register beans unless the Spring configuration is properly set. without it, OpenMRS won’t be able to instantiate the class during task scheduling.

class="org.openmrs.module.ugandaemrsync.tasks.SendAnalyticsDataToCentralServerTask"
scope="prototype"/>

</beans>