Add amqp10 module: AMQP 1.0 in Spring Boot 4.2 with RabbitMQ 4
Generic spring-boot-starter-amqp (AmqpClient, @AmqpListener) and RabbitMQ's own AMQP 1.0 client against a real RabbitMQ 4.4.1 broker via Testcontainers. Transcripts in amqp10/output/ are written by the tests; no docs/ folder. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b44H98Yd627wauSpzA
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
78fc41e586
commit
e54cf840fd
@@ -0,0 +1,11 @@
|
||||
what the broker holds (management API, 0-9-1 view of an AMQP 1.0 message):
|
||||
payload = {"id":"p-1","item":"mouse","qty":3}
|
||||
content_type = application/json
|
||||
headers = {"__TypeId__":"com.ankurm.amqp10.OrderMessage"}
|
||||
depth before pulling = 2
|
||||
$ untyped: Object o = from("/queues/orders.pull").receiveAndConvert().get()
|
||||
-> java.lang.IllegalArgumentException: The class 'com.ankurm.amqp10.OrderMessage' is not in the trusted packages: [java.util, jav...
|
||||
depth after the failed conversion = 1
|
||||
$ typed: CompletableFuture<OrderMessage> f = from(...).receiveAndConvert()
|
||||
-> OrderMessage[id=p-2, item=dock, qty=1]
|
||||
depth after the typed pull = 0
|
||||
Reference in New Issue
Block a user