Please help in Web design?
I am writing a web application and I am using the a servlet to do all for me, after analyzing I have divided my Application/code in these parts,
1)Connection with the database,
2)Reading the specific setting file upon the start of application.
3)Processing the different transactions in the database.
4)Closing all the connections to database upon exiting the application.
Please carefully analyze and tell which part of application should be coded in/put in which method (init(),destroy(),service()) of the servlet.
- Mark aka jack573Lv 71 decade agoFavourite answer
init() should have 1. and 2.