Posted: Tue Nov 27, 2007 9:48 am Post subject: Problems Altering Queue Aliases
Apprentice
Joined: 06 Jan 2003 Posts: 35 Location: Scotland
Folks
Another application uses a queue alias and server connection channel to send us messages.
Occasionally we need to change this alias to point to a different local queue. However it is not possible to do this while they are connected to the queue (message says something about the object being in use).
The only way I can alter the alias without getting the other app to take their app down, is to use the FORCE option after I do "alter qa(Qname)".
However at that point the other app still has an handle to the "previous" queue local. The other app then needs to be bounced so it can connect to the new queue.
Any suggestions for how I could change the queue alias and make the whole thing transparent to the other system, i.e. no need for the other app to explicitly reboot / reconnect?? Or is the other app connecting in some funny way?
There is no way around this. The app will have to reopen the queue (it does not have to do a full reconnect to the QM though) _________________ Peter Potkay
Keep Calm and MQ On
This is how qaliases work, apps need to close and re-open in order to pick up changes.
It may be useful to have the app code a special signal of some kind (perhaps a special message on the queue) to cause it to do this, without having to restart the whole app. _________________ 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