Skip to content

Commit 496c2b1

Browse files
committed
Add ProcessingGroup annotation to OrderedProductsEventHandler
Add the ProcessingGroup annotation to OrderedProductsEventHandler so that this event handler is grouped in a nicely named Event Processor. If the app is started in conjunction with Axon Server, this will make the set up more evident from the dashboard BAEL-2435
1 parent 97ab713 commit 496c2b1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

axon/src/main/java/com/baeldung/axon/querymodel/OrderedProductsEventHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import java.util.List;
66
import java.util.Map;
77

8+
import org.axonframework.config.ProcessingGroup;
89
import org.axonframework.eventhandling.EventHandler;
910
import org.axonframework.queryhandling.QueryHandler;
1011
import org.springframework.stereotype.Service;
@@ -16,6 +17,7 @@
1617
import com.baeldung.axon.coreapi.queries.OrderedProduct;
1718

1819
@Service
20+
@ProcessingGroup("ordered-products")
1921
public class OrderedProductsEventHandler {
2022

2123
private final Map<String, OrderedProduct> orderedProducts = new HashMap<>();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
spring.application.name=Order Management Service

0 commit comments

Comments
 (0)