A word to the wise about the scope of a IPC handle variable. Put the handle always as a local variable as putting it as a global scoped variable is dangerous. If the underlying remote Q process is bounced then the handler will not rebind to the new process making it dead! Be wary of putting it is a global variable, catching the exception and rebinding yourself as this is a
premature optimization.
No comments:
Post a Comment