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 |
What Is Dimensionality?
explain about endpoint url,endpoint alias?
When and why should we use transformers and flow services? How are they different from each other?
what are extended settings?
different b/t war,ear,jar files?
Explain about pub-sub architecture, where do you implemented this?
what is the variable need to keep in the clearpipeline service
What Is a Regular Expression?
Difference between Scheduler service and adapter pooling notification?
What is the difference between a system locked element and a read-only element?
What Is Flow Diagram View?
We have created a insert notification ,is there any way to process the document in the subscriber without publishing it .....?