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 many minutes have you spent in your lifetime reading documentation or actually (gasp) working with any webMethods product on a real project?
what is difference between groups and ACL groups
What Are Transformers?
what is the difference of using transformer in service & direct invoke of service?
3 Answers Cap Gemini, Siemens,
What Is a Replication Service?
How to Restore a Session on a Server?
how many interfaces u implimented sofar ?
How to Find Elements in the Navigation Panel?
Why we use Local transaction and there boundaries.
difference between 8x and 9x
How to store logs in DB?
Explain what is indices in map flow step?