Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


use of finally block in exception handling in webmethods



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

Post New Answer

More WebMethods Interview Questions

Join types in Trigger?Explain?

2 Answers   Accenture,


what is adictionary

3 Answers  


What is the difference between DISABLING a Polling Notification and SUSPENDING a Polling Notification?

1 Answers   Cap Gemini, Satyam,


How You Can Delete Session Logs On IS?

1 Answers  


what is the difference between lexical ooperators,logical operators?which one is mainly used in filter,broker?why?

2 Answers   Emphasis, HCL, iGate,


What Is the Pipeline Editor?

3 Answers  


What Happens When an Event Occurs?

2 Answers  


How to connect jdbc connection in webmethods without server and with server step by step explain.

1 Answers  


Who is Best Prime Minister of India

3 Answers  


In what folder is the webMethods documentation for Broker located?

2 Answers  


How to Know Who Has an Element Locked?

3 Answers  


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 ?

1 Answers   IBM,


Categories