Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to run a thread in AEM OSGI bundle?

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

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

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Former Community Member

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

Avatar

Level 10