Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to make use of Applets along with Servlets can be made safe for DB queries?

 

I am not asking whether it is good or not or about which technologies to use in its place

 

Thanks

user-image
Question added by ADIL JAMSHAID
Date Posted: 2015/07/19
Sandeep Kumar
by Sandeep Kumar , Programmer , e-Centric Solution Pvt. Ltd

Servlets, with their enduring life cycle, and JDBC, a well-defined database-independent database connectivity API, are an elegant and efficient solution for webmasters who need to hook their web sites to back-end databases.

TAMKANAT USMANI
by TAMKANAT USMANI , Senior Application developer , infosys

Use synchronized methods, singleton design pattern and while using objects like connection etc keep them within the try-catch block in minimum scope possible to avoid thread safety and resource leakage.

Tanvir Chowdhury
by Tanvir Chowdhury , Senior Software Engineer , Impel IT Solutions Ltd

Servlets, with their enduring life cycle, and JDBC, a well-defined database-independent database connectivity API, are an elegant and efficient solution for webmasters who need to hook their web sites to back-end databases.

The biggest advantage for servlets with regard to database connectivity is that the servlet life cycle  allows servlets to maintain open database connections. An existing connection can trim several seconds from a response time, compared to a CGI script that has to reestablish its connection for every invocation.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.