Haven't done exactly this, but it seems as though you could define two request
queues, and two MDBs (one for each respective queue) to do the work. In the
SLSB code, create a message for each request, set a temp replyto queue on each
and push to their respective queues. Then listen on one temp queue for the
answer, then the other once you get an answer on the first. You could do the
msg get from the temp queues in some kind of loop, so you're not blocking on
one queue too long.
Getting the message would look something like:
while ((!gotOne) && (!gotTwo) && (iter < max))
| {
| queueOneGetOptions.setTimeout(1000);
| queueTwoGetOptions.setTimeout(1000);
|
| try { tempQueueOne.get(msgOne); } catch (TimedOutException te) {}
| try { tempQueueTwo.get(msgTwo); } catch (TimedOutException te) {}
|
| iter++;
| }
Seems like it would work.
Poor man's BPM....
HTH,
Mike
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855039#3855039
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855039
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user