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 » Throw error to Syslog with TimeoutNotification

Post new topic  Reply to topic
 Throw error to Syslog with TimeoutNotification « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Wed Jun 08, 2011 7:13 am    Post subject: Throw error to Syslog with TimeoutNotification Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hi,

We have a flow which has Timeout Notification node set to Automatic mode. This flow is used to poll a DB on regular intervals. With the Timeout Notification node, the error handling functionality is like, if the catch terminal is not connected, the error is written to syslog and the node keeps retrying.

We do not want this retry to occurm but we want the error to be trown to the syslog. How can this scenario be handled? We stopped the retry by connecting the catch terminal, but then the error is not trown to syslog. But we need the error in syslog, but without the retry.

Is there any better solution to acheive this?

Message Broker version: 6.1
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Wed Jun 08, 2011 8:41 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Put a TryCatch node after the Timer node and before the compute/DB node?

Then any exception won't be rolled back to the TimerNode.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kash3338
PostPosted: Wed Jun 08, 2011 9:30 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

smdavies99 wrote:
Put a TryCatch node after the Timer node and before the compute/DB node?


Then will I be able to get the error in syslog? My aim is to both stop the retry in the timer node as well as to get the error in syslog.
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Wed Jun 08, 2011 9:46 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Connect your normal error handling code to the Catch Terminal of the try-Catch node.

(I am assuming that standard error code will cause an error to appear in the event log)

There are a few what I call prime nodes(1) that exhibit this sort of behaviour in an error case where some nodes would handle the rollback & backout correctly.
The collector node is one such case although I understand that its errant behaviour has been sorted out in the latest fixpacks (6.1.0.9 & 7.0.0.2)

(1) Nodes where a thread starts. eg MQInput SOAPInput JMSInput TimerNode FileInputNode & the second part of the Collector Node. There are more but I hope you get what I'm on about.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kash3338
PostPosted: Thu Jun 09, 2011 12:42 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

smdavies99 wrote:
Connect your normal error handling code to the Catch Terminal of the try-Catch node.

(I am assuming that standard error code will cause an error to appear in the event log)


I have a error handling code attached to the catch terminal of the Try-Catch node. But this does not cause the error to appear in syslog. Is there any way i can do this? I need the error to appear in syslog but there should not be any retry.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jun 09, 2011 1:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05075_.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 » Throw error to Syslog with TimeoutNotification
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.