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 the main difference between webservies 6.5 and webservies 7.1.2
Which value have to set for EnableAudit log while package replication?
what is the difference of using transformer in service & direct invoke of service?
3 Answers Cap Gemini, Siemens,
What is the file (.jar) name that sharing between WebMethods integrated with JD Edwards???
In which case the transformers should not be used...?
i have partner A,and partner B, then i want to send a document to partner B, what are requirements i will provide to partners ?
If v want to run the server with some other port number , what v need to do ?? Developer:
When we use exit flow steps?
what is the difference between lexical ooperators,logical operators?which one is mainly used in filter,broker?why?
2 Answers Emphasis, HCL, iGate,
When Is a Copy of the Input Pipeline Saved in the Audit Log?
What Is Developer?
How to Find Elements in the Navigation Panel?