The Artima Developer Community
Sponsored Link

Java Answers Forum
Preloaded Servlet

1 reply on 1 page. Most recent reply: Jan 20, 2003 3:36 AM by Singh M.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Adi

Posts: 3
Nickname: goyal
Registered: Dec, 2002

Preloaded Servlet Posted: Jan 20, 2003 12:31 AM
Reply to this message Reply
Advertisement
Hi All,

I have a requirement in which I need to write the connection pool for the database in one servlet, say servlet1. Now this servlet acts as a Database connection pool for all the other servlets present in the same application. The other servlets can collect the database connection from this servlet.

My concern, is how to preload the servlet1, before the request to the other servlets is send. When the request is send to the servlet then an instance of that servlet is created in the server, but for the servlet1 no request is send by the client directly.

Regards
Goyal


Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: Preloaded Servlet Posted: Jan 20, 2003 3:36 AM
Reply to this message Reply
Why do you need a servlet for that? Any normal class will do.

Flat View: This topic has 1 reply on 1 page
Topic: ArrayList Previous Topic   Next Topic Topic: Network Design Question

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use