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 |
when u use REPEATE,EXIT flow steps?
1 Answers Cap Gemini, LG CNS, Xavient,
How to Find Elements in the Navigation Panel?
How we can catch exception error on run time mode using flow language in webmethods?
what are client groups?
How to find dependents of a selected element on the server?
hai this is prasad webmethods is used to integrate the applications but ,we can do that same by using java also ,then why do we use webmethods please send me the answer
What is the main difference between webservies 6.5 and webservies 7.1.2
how can try and catch block can be implemented using web methods developer ? tell the steps to implement it?
What is a flat file schema and what are its uses?
What Is a Shutdown Service?
What Is Data Validated Against?
if i dont want to repeat then what i need to do?