Connect single queue to multiple qmgrs C++ -
Connect single queue to multiple qmgrs C++ -
i want connect single queue multiple queue managers (atleast 2 qmgrs). lets have qmgra , qmgrb queue managers , connected queuename. set message "hello" queuename connected qmgra message "world" on qmgrb. suppose queuename contains "hello" , "world".
the question how can messages simultaneously? can give me illustration code fragment/snippet me atleast have overview of how can start coding design.
note: *i asking because illustration qmgra got disconnected/down unknown reason, atleast qmgrb still active , messages on queuename though qmgra disconnected.
by way, i'm using websphere mq v7 c++.
thanks in advance! :)
the question appears asking how ibm mq not do. qmgrs not "connect" queues, host them. applications not "connect" queues except in abstract jms sense. connect qmgrs , open queues. however, requirement described of keeping mq highly available can met mq clusters, hardware clusters, multi-instance qmgrs, shared queues (on z/os only), or combination of these.
the 2 queue managers in illustration each host local re-create of queuename. here several scenarios how messages distributed in situation.
putting messages
queuename application connected qmgra default result in message landing in local instance of queue. when there local instance , mq cluster @ to the lowest degree 1 other instance, qmgr can configured allow messages go non-local instances. when qmgra, qmgrb, , qmgrc in cluster, , qmgrc not host local instance of queue, messages set queue name round-robin between instances on qmgra , qmgrb . getting messages
queuename on qmgra can retrieved queue application connected qmgra. a message landing in queuename on qmgrb can retrieved queue application connected qmgrb. an application connected qmgrc cannot retrieved messages queues hosted on qmgra or qmgrb. mq ha requirement create queue highly available can achieved in several ways. of these provide recoverability of service provided mq. of them provide recoverability of messages stranded in-flight. in add-on reading topology design section in manuals, please see mq ha presentation ibm interconnect 2015.
c++ queue message-queue websphere-mq
Comments
Post a Comment