Reputation: 20633
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.
Upvotes: 7
Views: 325
Reputation: 38615
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
Upvotes: 2
Reputation: 80603
The RESTful way of handling this would be to:
Upvotes: 6