ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What happens to publications when error delivering?

Post new topic  Reply to topic
 What happens to publications when error delivering? « View previous topic :: View next topic » 
Author Message
Sandman
PostPosted: Sun Oct 14, 2012 10:42 am    Post subject: What happens to publications when error delivering? Reply with quote

Centurion

Joined: 16 Oct 2001
Posts: 134
Location: Lincoln, RI

If a message flow that sends a message to a Publication node doesn't specify message type of request and a replyToQueue, and the broker fails when trying to send the message (i.e. queue manager not available), is the pub message just discarded?

[edited spelling error]


Last edited by Sandman on Mon Oct 15, 2012 5:43 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Sun Oct 14, 2012 12:17 pm    Post subject: Re: What happens to publications when error delivering? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Sandman wrote:
If a message flow that sends a message to a Publication node doesn't specify messasge type of request and a replyToQueue, and the broker fails when trying to send the message (i.e. queue manager not available), is the pub message just discarded?


Why would you think the flow would perform what it does normally when it encounters an error?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Oct 14, 2012 1:11 pm    Post subject: Re: What happens to publications when error delivering? Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
Sandman wrote:
If a message flow that sends a message to a Publication node doesn't specify messasge type of request and a replyToQueue, and the broker fails when trying to send the message (i.e. queue manager not available), is the pub message just discarded?


Why would you think the flow would perform what it does normally when it encounters an error?


I believe you forgot a "not" in there somewhere.
Back to top
View user's profile Send private message
Sandman
PostPosted: Mon Oct 15, 2012 4:12 am    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2001
Posts: 134
Location: Lincoln, RI

I wouldn't expect the flow to throw an error back to the MQInput's catch terminal because the flow didn't fail; the Publication node DID accept the published message - it's just that the broker failed satisfying one of its subscriptions.

Am I wrong in assuming that the actual delivery to subscribers is in a separate unit of work (beyond the pub flow)?
Back to top
View user's profile Send private message Send e-mail
nathanw
PostPosted: Mon Oct 15, 2012 4:42 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

think it would depend on the version of broker and MQ you are using
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
Vitor
PostPosted: Mon Oct 15, 2012 4:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Sandman wrote:
I wouldn't expect the flow to throw an error back to the MQInput's catch terminal because the flow didn't fail; the Publication node DID accept the published message - it's just that the broker failed satisfying one of its subscriptions.


That's not what you said. You asked about the publication failing. If the broker (or in v7 the queue manager) accepts a message for publication that's one thing. If the queue manager can't then propagate the publication to a subscriber that's another, and brings you into the world of assured delivery as with a point to point message.

Sandman wrote:
Am I wrong in assuming that the actual delivery to subscribers is in a separate unit of work (beyond the pub flow)?


It's in a separate unit of work and operated by a different process. Remember that for any publication it's then necessary to match all the potential subscribers to the topic of the new publication before any message movement can take place.

So to answer the question I think you originally intended to ask, a publication isn't lost in the event of a queue manager being unavailable any more than a message on a transmission queue is lost in the same circumstances. Or to the same extent a message is lost in the same circumstances.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Sandman
PostPosted: Mon Oct 15, 2012 5:46 am    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2001
Posts: 134
Location: Lincoln, RI

I didn't think I had "asked about the Publication failing" when I said "is the pub message just discarded?". But I can see how that could be interpreted as such.

By "pub message", I meant, after successful call to Publication node, the message that the Broker then tries to deliver to subscribers. Perhaps I should've said "subscriber message" to be clearer?

At any rate, if the Broker couldn't deliver the message to a subscriber whose qmgr wasn't available, it would just sit on the transmission queue is what you're saying?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Oct 15, 2012 6:02 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Sandman wrote:
Perhaps I should've said "subscriber message" to be clearer?


Or "subscription". But comes to the same thing.

Sandman wrote:
At any rate, if the Broker couldn't deliver the message to a subscriber whose qmgr wasn't available, it would just sit on the transmission queue is what you're saying?


As indicated above, the mechanics of this changes significantly between WMBv6 & WMBv7 but yes.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Sandman
PostPosted: Mon Oct 15, 2012 6:31 am    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2001
Posts: 134
Location: Lincoln, RI

Oh, sorry. 6.1.0.7
Back to top
View user's profile Send private message Send e-mail
nathanw
PostPosted: Mon Oct 15, 2012 7:28 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

so this would be in Broker unit of work only as in 6.1 pub sub was handled by Broker.

I believe the answer to this if the target or subscribing queue does not exist then the message is written to the dead letter queue.

The answer is always to ensure that the subscribing queue is always created.
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
mqjeff
PostPosted: Mon Oct 15, 2012 7:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It's not clear if you are using MQ v6, but
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqnar.doc/ps11480_.htm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What happens to publications when error delivering?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.