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 open a session on a different server?
what is difference between groups and ACL groups
Can u please tell me abt WebMethods in brief
How many interfaces you implemented sofar?
Why we use Local transaction and there boundaries.
Can U Explain JDBC Adapter Transaction types..?
8 Answers Cap Gemini, LG CNS, STC, Tech Mahindra,
what is the difference between Schema and SchemaDT
Can you spell "Webmethods" properly in the language of your choice?
Where do you implemented pub-sub architecture?
What Is a Third-Party Source Control Application?
i am having a csv file and it is passed to the tokenize and is passed to the three different fields without setting the indices property. my question is to which variable which value goes or all the tokenized fields tobe passed? for eg:santosh.giridhar_satish_satish.csv-->tokenize what will happen
How to Move Flow Steps?