You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7e73cab
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): start event bus processor for manual wiring
Ensure MainEventBusProcessor.ensureStarted() starts manually constructed processors, and call it from DefaultRequestHandler.create(...). This prevents manually wired integrations from leaving events stuck on the main event bus.
Add a regression test for the manual wiring path that returns a Message response.
Start the main event bus processor from the public request handler constructor and verify the direct manual wiring path.
This fixes#995
Co-authored-by: Kabir Khan <kkhan@redhat.com>
Copy file name to clipboardExpand all lines: docs/content/dev/server.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,4 +247,51 @@ See [Backward Compatibility](compatibility) for multi-version modules, version r
247
247
-**Quarkus** — Reference implementations are Quarkus-based (JSON-RPC, gRPC, REST)
248
248
-**Jakarta EE** — [a2a-jakarta](https://github.com/wildfly-extras/a2a-jakarta) works with any Jakarta EE Web Profile runtime
249
249
250
+
### Manual Wiring
251
+
252
+
For example, when wiring the server components as Spring beans, expose the event processor as a bean and pass it to the request handler. The handler starts the processor when it is constructed, including when the processor was created manually:
Register the remaining dependencies, including an `a2aInternalExecutor` bean and a `TaskAuthorizationProvider`, as Spring beans. Keep the cached event consumer executor separate from the agent executor: blocking event polling can exhaust a bounded pool under load.
296
+
250
297
See [CONTRIBUTING_INTEGRATIONS.md](https://github.com/a2aproject/a2a-java/blob/main/CONTRIBUTING_INTEGRATIONS.md) to submit your own integration.
0 commit comments