Skip to content

Instantly share code, notes, and snippets.

@marcosblandim
Created June 12, 2023 15:35
Show Gist options
  • Select an option

  • Save marcosblandim/afd45db560e5a1c7d681be5bab9180a7 to your computer and use it in GitHub Desktop.

Select an option

Save marcosblandim/afd45db560e5a1c7d681be5bab9180a7 to your computer and use it in GitHub Desktop.
Load OSGi Service
private SchedulerEngine getSchedulerEngine() {
SchedulerEngine schedulerEngine = (SchedulerEngine) IdentifiableOSGiServiceUtil.getIdentifiableOSGiService(OSGI_SERVICE_IDENTIFIER);
}
private final String OSGI_SERVICE_IDENTIFIER = "com.liferay.portal.scheduler.multiple.internal.ClusterSchedulerEngine";
SchedulerEngine schedulerEngine = getSchedulerEngine();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment