davsclaus opened a new pull request, #155: URL: https://github.com/apache/camel-jbang-examples/pull/155
Closes #154 A new example on the `connect-service` rung, with the shop story: a simulated ERP puts payment orders (XML in the shape of ISO 20022 pain.001) on an IBM MQ queue; the queue manager is the developer image from `camel infra run ibmmq`. - The `validator` component checks each order against `payment-order.xsd`; a `SchemaValidationException` puts the order on `DEV.QUEUE.2` with the first schema error in a header. - A route-level `deadLetterChannel` tries a failing order three times (PMT-003 pays in SEK, the bank takes EUR only) and moves the original message to the backout queue `DEV.QUEUE.3`; the next order is processed. - A `split` with XPath sends each credit transfer. - The IBM MQ connection factory is a `camel.beans.*` bean in `application.properties`, so the payment routes and the ERP also work as two apps; the user and password go through placeholders, so Camel does not warn about plain-text secrets. - The schema is a small one of our own with the shape of pain.001, not ISO's file. Checked locally on an arm64 Mac (Docker runs the amd64 image with Rosetta): `camel validate yaml --canonical` reports nothing, `camel run *` logs what the README shows, and `camel test run` passes with Camel 4.23.0. The metadata sets `ciSkip`, and the test is not in `build.yml`: Camel's own IBM MQ tests are off on GitHub Actions because the image on icr.io cannot be pulled reliably there (CAMEL-24588). `./generate-catalog.sh` updated the catalog and the README tables. Related: `camel infra run ibmmq` shows an empty password in 4.23.0 (CAMEL-27764 (camel infra run ibmmq shows an empty password), apache/camel#31093); the example sets the password itself, so it does not depend on that fix. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
