Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:A2aproject A2a java Quarkus Runtime

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Server, Java
Last Updated 2026-10-29 00:00 GMT

Overview

Quarkus 3.40.1.1 runtime environment for A2A server-side implementations, providing CDI-based dependency injection, HTTP/REST endpoints, and reactive messaging.

Description

The A2A Java SDK's reference server implementations and server-common module are built on Quarkus. Quarkus provides the CDI container (Weld), REST/RPC transport endpoints, MicroProfile Config, and SmallRye Reactive Messaging used by the server-side components. The server-common module uses CDI qualifiers (`@PublicAgentCard`, `@ExtendedAgentCard`, `@Tenant`) and `@Produces` beans for `AgentExecutor`, `AgentCardResolver`, `TaskStore`, and `QueueManager`. The `AgentExecutor` runs on a managed thread pool (`AsyncExecutorProducer`) and events flow through Mutiny Zero reactive streams. The Quarkus platform version 3.40.1.1 is defined in the parent POM and pulled via the Quarkus BOM.

Usage

Use this environment for all server-side A2A implementations: building reference servers, running `mvn quarkus:dev` for development, deploying the cloud-deployment example, and using JPA-backed task stores or Kafka-based replicated queue managers. Client-only modules do not require Quarkus.

System Requirements

Category Requirement Notes
OS Linux, macOS, or Windows Any OS supporting JDK 17
Hardware 512MB RAM minimum 1GB recommended for server with Kafka/PostgreSQL
JDK 17+ See Environment:A2aproject_A2a_java_Java_17_Runtime

Dependencies

System Packages

  • JDK 17+ (prerequisite)
  • Maven 3.8+ (prerequisite)

Java Libraries

  • Quarkus platform >= 3.40.1.1 (via `quarkus-bom`)
  • Jakarta CDI API = 4.1.0
  • Jakarta Inject API = 2.0.1
  • Jakarta WS-RS API = 3.1.0
  • Mutiny Zero = 1.3.1 (reactive streams bridge)
  • Weld SE Core = 6.0.4.Final (CDI implementation)
  • SmallRye Reactive Messaging (Kafka connector)

Credentials

No credentials required for the Quarkus runtime itself. Application-level secrets are injected via environment variables or MicroProfile Config:

  • `AGENT_URL` — Agent's public URL
  • `DATABASE_URL`, `DATABASE_USER`, `DATABASE_PASSWORD` — Database credentials
  • `KAFKA_BOOTSTRAP_SERVERS` — Kafka broker address
  • `POD_NAME` — Kubernetes pod identity (via Downward API)

Quick Install

# Quarkus is pulled automatically via Maven — no separate install needed.
# To run a server in dev mode:
cd examples/helloworld/server
mvn quarkus:dev

# The Quarkus BOM is managed in the parent POM:
# <quarkus.platform.version>3.40.1.1</quarkus.platform.version>

Code Evidence

Quarkus platform version from `pom.xml:78`:

<quarkus.platform.version>3.40.1.1</quarkus.platform.version>

JVM args for Quarkus from `pom.xml:93`:

<quarkus.jvm.args>--add-opens=java.base/java.lang=ALL-UNNAMED</quarkus.jvm.args>

Application configuration from `examples/cloud-deployment/server/src/main/resources/application.properties:5-6`:

quarkus.http.port=8080
quarkus.http.host=0.0.0.0

CDI-based async executor from `server-common/.../async/AsyncExecutorProducer.java`:

// Quarkus CDI producer for the agent executor thread pool
// Managed by the container lifecycle

Common Errors

Error Message Cause Solution
`No bean found for type AgentExecutor` Missing `@Produces` bean in deployment Ensure `AgentExecutorProducer` is on classpath
`Port 8080 already in use` Another process using the port Set `quarkus.http.port` to a different value
`--add-opens=java.base/java.lang=ALL-UNNAMED` missing Error Prone fork needs JVM access Set `quarkus.jvm.args` property

Compatibility Notes

  • Quarkus native image: Not the primary target; additional native image configuration may be needed.
  • Non-Quarkus runtimes: The server-common module relies on CDI; any CDI 4.1 compliant container should work, but only Quarkus is tested.
  • MicroProfile Config: Supported via the `integrations/microprofile-config` module for non-Quarkus environments.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment