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 » IBM MQ File Transfer Edition » SampleEndExit to log errors

Post new topic  Reply to topic
 SampleEndExit to log errors « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Tue Feb 11, 2014 12:02 am    Post subject: SampleEndExit to log errors Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi

I have copied the SampleEndExit sample and managed to implement it on my agent.. Somehow it only shows me successful transfers. How can I get it to display Errors too or if there was an incomplete transfer. I have two problems.


1. My exit doesn't write errors to the log
2. I have am sftp transfer which keeps coming up as partial successful.. Looking at MQ explorer it looks like the SOurce agent was unable to delete the file.. so when the next transfer comes the file is transferred again and again.. How can I avoid this from happening.. I need to report if the transfer was failed.. The source Agent runs on Windows DMZ... SO I am assuming there are no file locks.

Please help..http://pic.dhe.ibm.com/infocenter/wmqfte/v7r0/index.jsp?topic=%2Fcom.ibm.wmqfte.doc%2Fsample_source_end_exit.htm
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 11, 2014 8:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

you may not have delete authorization for the file...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
matuwe
PostPosted: Tue Feb 11, 2014 10:54 pm    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi

Yes I am sure that's the problem.. If we get this when the source agent is Unix we can go and fix the file permission. But how do we check file permissions on windows.. The biggest problem is I have read access, so I keep reading the same file over and over.

Has anyone managed to get Error messages to display on the log file?
Back to top
View user's profile Send private message
matuwe
PostPosted: Tue Feb 11, 2014 11:59 pm    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi

System.out.println("Transfer completed ." + thisFileSpec.getExitResult().getResultCode() + thisFileSpec.getExitResult().getExplanation());

Now I can catch errors.......
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 » IBM MQ File Transfer Edition » SampleEndExit to log errors
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.