Author |
Message
|
iib |
Posted: Tue Sep 15, 2015 6:41 am Post subject: File Input node capture exception |
|
|
Apprentice
Joined: 26 Jun 2015 Posts: 27
|
Good Morning,
Anyone know how to catch the exception if from the FileInput node can not connect to SFTP, this in order to send an email to notify.
Thank you. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Sep 15, 2015 7:54 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Through your standard exception handling code?
Many organisations have some form of common exception handling. This might need mosifying to detect the right error and send the email (preferably in a separate flow) _________________ 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 |
|
 |
mqjeff |
Posted: Tue Sep 15, 2015 7:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I'd be surprised if the flow received any kind of notice that the SFTP server was not available - at least for FileInput. That's usually logged at the system level.
But, of course, I haven't reviewed that stuff recently, so I'm glad to find out I'm wrong. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
iib |
Posted: Tue Sep 15, 2015 10:17 am Post subject: |
|
|
Apprentice
Joined: 26 Jun 2015 Posts: 27
|
If I can see the error in the system level, but would like to know if I can control that error from the integration. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 15, 2015 10:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I'd be surprised if you could.
But I haven't looked at the documentation recently. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 16, 2015 3:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
I'd be surprised if you could. |
But conversely, if the error's being reported at the system level, whatever tool you have monitoring the system can almost certainly detect the error and email someone out of the box. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
akil |
Posted: Fri Sep 18, 2015 10:59 am Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
The error is logged in the syslog by the broker, but it is not considered a failure by the FileInput node, so it's not possible to capture thus in the flow. _________________ Regards |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 18, 2015 11:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
akil wrote: |
The error is logged in the syslog by the broker, but it is not considered a failure by the FileInput node, so it's not possible to capture thus in the flow. |
It's not considered a failure by the FileInput node because it never reaches the FileInput node. The FTP/SFTP process is polling in the background, and the FileInput node is monitoring a local directory. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|