use of finally block in exception handling in webmethods
Answer Posted / wmlead
Lets assume we have a code where we are using open ssh and in the try block we are doing a sftp login .
So in case of success or error either step we would have to do a logout . So to avoid code duplication both in end of try and catch block we can have a finally block (exit on done). Do a logout in this sequence.
Also it can hold good when we do a manual connection to a DB and irrespective of success or failure we want to close connection.
Main(Exit on success)
|
|----Try(Exit on Failure)
|
|----Catch(Exit on Done)
Finally(Exit on Done)
Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
If I have a parent sequence with the property set- exit on success, and the try sequence block set to exit on failure, and the catch sequence block too set to failure, what is the result?
Explain header handlers in web services
Explain about pub-sub architecture?
How we can catch exception error on run time mode using flow language in webmethods?
can anyone explain in brief about TN Consloe and Webmethods...? As well as All flow steps in webmethods: Branch Repeat Loop Sequence (explain also Try -Catch block for error Handling)
can any one please post Q and Ans for Trading Networks in webMethods
in filepooling process the document is not updated in target location means its in error directory how to achieve this problem?
how to configure sap adapter6.1
When Should You Use Flow Diagram View?
How many minutes have you spent in your lifetime reading documentation or actually (gasp) working with any webMethods product on a real project?
How many interfaces you implemented sofar?
Explain about pub-sub architecture, where do you implemented this?
Where do you implemented pub-sub architecture?
How many kinds of log files in webmethods?
What are the advantages of eai?