Skip to main content
Oct 16, 2015 2:27 AM UTC
Solved

How to run a thread in AEM OSGI bundle?

Hi there,

There is a case that i need to define a thread in the OSGI bundle. This thread auto-running at the background, but how to active and start this thread?

Is there any specif solution for that?

 

Thanks a lot.

Best regards,

brian

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Accepted solution
Oct 16, 2015 2:27 AM UTC

Hi Sham,

The thread just used to invoke an webservice and to check tasks if completed. If true, this application will pull a remote file from a server.

 

Best regards,

Brian

3 replies

Sham_HC
Level 10
Oct 16, 2015 2:27 AM UTC

Using scheduler or sling jobs or http://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/workflow/exec/WorkflowExternalProcess.html should suffice your requirement

Translate
Accepted solution
Oct 16, 2015 2:27 AM UTC

Hi Sham,

The thread just used to invoke an webservice and to check tasks if completed. If true, this application will pull a remote file from a server.

 

Best regards,

Brian

Translate
Sham_HC
Level 10
Oct 16, 2015 2:27 AM UTC

Can you give little background what that thread would be doing ?   Scheduler should work for most cases http://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html

http://helpx.adobe.com/experience-manager/using/aem-first-components1.html

Translate