Hello,
I am building an application with Axon Framework 4.12 & springboot 3.5.5 and Kafka, but nothing is being published to my Event Hub. I can see that the connections are established, but no messages are being sent.
Here is the configuration of my aggregate server:
spring:
jpa:
hibernate:
ddl-auto: update
datasource:
url: jdbc:postgresql://XXXX?ssl=true&sslmode=require
username: XXXX
password: XXXX
axon:
axonserver:
enabled: false
kafka:
bootstrap-servers: XXX.servicebus.windows.net:9093
default-topic: test
properties:
security.protocol: SASL_SSL
sasl.mechanism: PLAIN
sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="XXXX"
producer:
retries: 0
event-processor-mode: TRACKING
client-id: myapp
The event store is correctly configured: I have the domain_event_entry table and the token store set up. I also have the token_entry table with one row:
Name |Value |
--------------+-------------------------------------------+
processor_name|__axon-kafka-event-publishing-group |
segment |0 |
owner |14576@FPPSI12M |
timestamp |2025-09-19T16:49:06.537Z |
token |197340066 |
token_type |org.axonframework.eventhandling.ReplayToken|
I can see requests reaching my Event Hub.
When I send a command, my aggregate receives it, emits an event, and the aggregate handles the event—but nothing appears in the Event Hub.
What configuration am I missing?
my dependencies below
<dependencies>
<!-- Spring -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<!-- Axon -->
<dependency>
<groupId>org.axonframework</groupId>
<artifactId>axon-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.axonframework.extensions.springcloud</groupId>
<artifactId>axon-springcloud-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>eu.ima.axonframework.extensions.stream</groupId>
<artifactId>axon-stream-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.axonframework.extensions.reactor </groupId>
<artifactId>axon-reactor-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.axonframework</groupId>
<artifactId>axon-micrometer</artifactId>
</dependency>
<dependency>
<groupId>org.axonframework.extensions.kafka</groupId>
<artifactId>axon-kafka-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>io.axoniq.console</groupId>
<artifactId>console-framework-client-spring-boot-starter</artifactId>
<version>1.10.0</version>
</dependency>
<!-- Kafka -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>4.1.0</version>
</dependency>