use of finally block in exception handling in webmethods
Answer / 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 |
How to Rename and Delete Elements?
How to store logs in DB?
Can U Explain JDBC Adapter Transaction types..?
8 Answers Cap Gemini, LG CNS, STC, Tech Mahindra,
Explain what are the new features in 8.0 compared to 7.1?
what is difference between invoke & transformers
How many kinds of log files in WebMethods???? and where are they exist???
Hi I am using Wenmethods 7.1 since many years. I am on Webmethods project. Today my Boss asked me about CLSRIM (Webmethods service, when one server is down, automatically another will take over. Can you please throw some light on above ? OR from where can I get some help ? IT IS URGENT...... Komalika
Why we use Local transaction and there boundaries.
What Is Developer?
HOw to handle exceptions in webMethods.
1 Answers JPMorgan Chase, Logica CMG,
how to configure sap adapter6.1
when we are using loop and when we use repaet?