Posted: Mon Oct 23, 2006 3:04 am Post subject: Complex request reply message flow
Acolyte
Joined: 25 Apr 2005 Posts: 54 Location: Edinburgh
Hi there,
I need to write a request\reply flow that will query several systems for a health check (other request replies) before returned a reply to the requester. None of the replies depend on each other so there's no aggregation here. What would be the easiest way to do this?
(I'm actually using WMQI 2.1 but I guess the answer would be applicable to message flows in general) _________________ *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Angus Cooke ~ AngusSoft
Integration Development Tools
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
It doesn't matter that the replies aren't dependant on each other. It still sounds like you need to ensure that you've sent all the requests and gotten all the replies before you return a reply to the original request.
You need aggregation for that - I mean, that *is* aggregation.
You otherwise can't maintain the necessary state between all of the replies - knowing when they've all come in - or between each request and reply - knowing what correlId to wait for, etc.
Especially you can't do this in 2.1 without aggregation - or without reimplementing aggregation yourself. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum