Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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 ajoutée par ADIL JAMSHAID
Date de publication: 2015/07/19
Sandeep Kumar
par 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
par 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
par 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