ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل ADIL JAMSHAID
تاريخ النشر: 2015/07/19
Sandeep Kumar
من قبل 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
من قبل 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
من قبل 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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟