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
12 lines
655 B
Plaintext
12 lines
655 B
Plaintext
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
|