# A2A in Java: hands on Embabel

DevFeed: [A2A in Java: hands on Embabel](<https://devfeed.tech/articles/a2a-in-java-hands-on-embabel-22588.md>)

Original publisher: [Read original article](<https://medium.com/amex-gbt-technology/a2a-in-java-hands-on-embabel-c80c9f716f6f?source=rss----60a0578f4096---4>)

Author: Aneshka Goyal

Published: 2026-06-16T08:44:44Z

Content type: article

Language: en

Sources: [Amex GBT Technology](<https://devfeed.tech/sources/amex-gbt-technology.md>)

Topics: [Embabel](<https://devfeed.tech/topics/embabel.md>), [A2A protocol](<https://devfeed.tech/topics/a2a-protocol.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>), [Microsoft Agent Framework](<https://devfeed.tech/topics/microsoft-agent-framework.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [a2a](<https://devfeed.tech/tags/a2a.md>), [a2a-protocol](<https://devfeed.tech/tags/a2a-protocol.md>), [actions](<https://devfeed.tech/tags/actions.md>), [adk](<https://devfeed.tech/tags/adk.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-framework](<https://devfeed.tech/tags/agent-framework.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-applications](<https://devfeed.tech/tags/ai-applications.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [building](<https://devfeed.tech/tags/building.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [domain](<https://devfeed.tech/tags/domain.md>), [embabel](<https://devfeed.tech/tags/embabel.md>), [framework](<https://devfeed.tech/tags/framework.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [java](<https://devfeed.tech/tags/java.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [spring-ai](<https://devfeed.tech/tags/spring-ai.md>)

## AI overview

The article explains how Embabel, a Java agent framework built on Spring AI, supports A2A communication and uses planning to connect LLMs with existing business logic. Its A2A endpoints expose agent cards and JSON-RPC calls; a request handler passes messages to Autonomy, which ranks available agents from user input and metadata, then creates an agent process. Embabel's GOAP planner targets a defined goal and can replan after each action, while its utility planner selects the highest-value next action for reactive or exploratory tasks and may stop when no action qualifies. The agent process maintains execution state on a type-indexed blackboard. Spring AI can also be used without Embabel to build agents.

## Source excerpt

Part 1: What is Embabel? A2A, or Agent-to-Agent Protocol, is an open standard (now under the Linux Foundation) that provides a common language for diverse AI agents to communicate, collaborate, and share tasks, enabling interoperability across different frameworks, vendors, and platforms. You can read more about A2A here. A2A makes agents framework and tech stack agnostic, which means agents developed in Python will be able to connect to other agents in Java or any other programming language of choice (given we have A2A protocol compliance). We currently have ADK (Python) and other Python specific frameworks that simplify the development of A2A compliant agents (as you'll read in this blog). This initiative explores creating a comparable Java-specific framework to enable building A2A-compliant agentic applications in Java. Brief about Spring AI Before learning about Embabel, it's important to discuss and know about Spring AI which provides the foundation for Embabel framework. The Spring AI project aims to streamline the development of applications that incorporate artificial intelligence functionality without unnecessary complexity. This project draws inspiration from notable Python projects, such as LangChain and LlamaIndex, but Spring AI isn't a direct port of those projects. The project was founded with the belief that the next wave of generative AI applications will not only be for Python developers but ubiquitous across many programming languages. Spring AI can be used without Embabel (or any other high level framework like ADK java) to create agents and agentic applications. For more info around how to use Spring AI, check out Part 1 and Part 2. What is Embabel? Embabel is an agent framework built on Spring AI, designed to integrate Large Language Models (LLMs) with existing domain logic and structured code in Java applications. It utilizes a Goal-Oriented Action Planning (GOAP) mechanism to allow agents to dynamically determine the sequence of actions needed