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 |
can we invoke morethan one service in trigger?
How to Move Flow Steps?
When and why should we use transformers and flow services? How are they different from each other?
what is the difference between lexical ooperators,logical operators?which one is mainly used in filter,broker?why?
2 Answers Emphasis, HCL, iGate,
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 Flow Diagram View?
Who is Best Prime Minister of India
difference between 8x and 9x
How can you see partner data using webservice.
In which case we are not advised to use Transformers...?
what kind of error will be occurred if u did not mention from to the exit flow step
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?