In order to send JMS, we are using CDI events annotated with @DispatchToQueue and CdiJmsBridge that translates queues messages.
For processing queued messages and writing changes to DB, we should either
1. consider having a limited number of MDBs so they don't write concurrently or we should leverage 2. or use same pattern with MetricCollector (one cycle processes a lot of messages from queue, and updates DB)
|