コミュニティアチーブメントバーを展開する。

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

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Enabling Asynchronous Support in Sling Servlet/OSGi Service for Parallel Processing of Multiple APIs

Avatar

Level 4

I'm working on a task where I need to process data from 3-4 third-party APIs asynchronously, or in parallel, and present this data in JSON format via a Sling servlet to the front end. Could anyone provide some guidance on how to enable asynchronous support in a Sling servlet or an OSGi service?

1 受け入れられたソリューション

Avatar

正解者
Community Advisor
2 返信

Avatar

正解者
Community Advisor

Avatar

Employee Advisor

Hi,

 

To enable asynchronous processing in a Sling servlet or OSGi service:

  1. Use OSGi Declarative Services (DS) with @reference to SlingJobExecutor for async logic.