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

What Is Dimensionality?

2 Answers  


How to create a link between variables?

2 Answers  


if i dont want to repeat then what i need to do?

7 Answers   Polaris,


When and why should we use transformers and flow services? How are they different from each other?

9 Answers   Cap Gemini,


How many kinds of log files in WebMethods???? and where are they exist???

7 Answers   Satyam,


Difference between custom sql ,dynamic sql ? when we use custom sql,when we use dynamic sql?

4 Answers   Quinnox,


what is meant by "Block time out" and "Expire time out " in jdbc adapter configuration

1 Answers   Colt, Satyam,


In which case we are not advised to use Transformers...?

3 Answers  


how can you find file name in file-pooling concept?

2 Answers  


How Java Services Are Organized on the webmethods Server?

2 Answers  


What Is a Lock?

1 Answers  


Should we archive derived files?

1 Answers  


Categories