Actually, I have the following flow:
I'll like to hear how you guys do or suggest me to made me able to get the "status" of these MDBeans.
Basically, each MDBean will run some method in a list of some object type, so, calc the percentage done should be easy, I just don't know how and which is the best architectural decision I could make to made this accessible in some RESTful service.
Thanks in advance.
The RESTful way of handling this would be to:
Since MDB consumption and treatment is transacted, it's all or nothing. Showing progress will be complicated and will require sub transaction to update the progress. I would suggest to chunnk the work in multiple JMS messages in the EJB and monitor progress in term on JMS messages successfully consumed later. See Patterns of Enterprise Integation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With