R4R
Right Place For Right Person TM

How can you implement singleton pattern in servlets ?

previous previous previous
Question:
How can you implement singleton pattern in servlets ?

Question:How can you implement singleton pattern in servlets ?


Answer
Singleton is a useful Design Pattern for allowing only one instance of your class. you can implement singleton pattern in servlets by using using Servlet init() and <load-on-startup> in the deployment descriptor.

By:Jalees
Date:

How can you implement singleton pattern in servlets ?

Post Your Answers


User Name:
Answers:

Related Links

  1. What is the difference between an application server and a web server?
  2. Can we implement Runnable interface from within our servlet?
  3. What is RequestPocessor class? How will you create your own RequestPocessor?
  4. Can you test a JSP page using Junit?

Question:How can you implement singleton pattern in servlets ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R