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 » publication node all message to dead letter

Post new topic  Reply to topic
 publication node all message to dead letter « View previous topic :: View next topic » 
Author Message
wilsonho3
PostPosted: Fri Sep 03, 2010 12:57 am    Post subject: publication node all message to dead letter Reply with quote

Voyager

Joined: 20 Nov 2001
Posts: 98
Location: Hong Kong

problem in pub/sub

from the redbook Sg247826. just follow the steps to implement
the pub/sub solution. two flow created, pub and sub, the sample
look easy and well define. yet all the message reach to publication
node will all put to dead letter queue.

pub flow

mqinput -> compute > publication

queue in : PUB_IN
compute :

Example 9-3 ESQL V61_publish.esql
CREATE COMPUTE MODULE V61_publish_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
--Set up the Publication
SET OutputRoot.MQRFH2.psc.Command = 'Publish';
SET OutputRoot.MQRFH2.psc.PubOpt = 'Local';
SET OutputRoot.MQRFH2.psc.Topic = InputRoot.XMLNSC.Request.Topic;
SET OutputRoot.XMLNSC.Text = InputRoot.XMLNSC.Request.Text;
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER 1;

publication: nothing
--------------------------------------
sub flow :

queue: SUB_IN

compute:

Example 9-11 ESQL code
CREATE COMPUTE MODULE V7_subscribe_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
-- Set up the subscription request
SET OutputRoot.MQRFH2.psc.Command = 'RegSub';
SET OutputRoot.MQRFH2.psc.Topic = 'Weather';
SET OutputRoot.MQRFH2.psc.QMgrName = 'V7QM';
SET OutputRoot.MQRFH2.psc.Filter = 'Root.XMLNSC.Forecast.Temperature
> 30';
SET OutputRoot.MQRFH2.psc.QName = 'OUT';
RETURN TRUE;


do I need to tell the publication node the subscribe queue is SUB_in

pls advise

ths
Back to top
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Fri Sep 03, 2010 1:32 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

did you verify the messge content in the dlq? is there a dl header that specifies the reason?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
nathanw
PostPosted: Fri Sep 03, 2010 6:16 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

also try running a trace on the flow it may show the reason

I notice you have SUB.IN and SUB.in in your post is this correct or just a typo?
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » publication node all message to dead letter
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.