Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
zpat wrote:
How do you make sure the primary app server opens the queue first? - that's a trickier one to solve.
One thought is you could have another queue which could be your app control queue (APP_CTL). The primary application would only use this queue to post a message (with an expiry like 3 minutes) that it wants control. If a secondary app had exclusive hold of the message queue, it would check in an interval (say every 60 seconds) if a message is on the APP_CTL queue. If there was a message on the APP_CTL queue, it would close the message queue. Any secondary connecting app would also first check for no messages on the APP_CTL queue before trying to open the message queue. This would give a window for the primary app to come in and get back exclusive hold of the message queue, by putting a message on the APP_CTL queue.
Thanks. That actually worked. I added a sleep in my code to verify the behavior.
I couldn't really understand the FastTransferOrder documentation. Is that a property that is set up on the Queue when it gets created or is it an option that the Api takes somewhere? I am on websphere 7.5.
And regarding make one of the machines/threads a primary (master) is there a way for it?
I want to have another setup where only the primary gets the queue as long as its alive and when it fails one of the other machine becomes the primary.
Hey, I have exactly the same need here to evenly distribute traffic to two clients on the same queue. Do you mind advising where exactly I should set this FastTransferOrder parameter? Thanks in advance, JB
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