Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Create two instance of Servlet
Joined: Jun 20, 2005
Dec 28, 2006 02:28:00
Please let me know how we create two instance of
in multithreaded servlet.
Joined: Mar 06, 2001
Dec 28, 2006 03:28:00
new Servlet(); new Servlet();
are already multithreaded, you do not need to create multiple instances or even manage the instances - it is the container's job to do this for you.
Joined: Dec 11, 2004
Dec 28, 2006 04:43:00
If you want two servlet instances from the same servlet class, create two servlet entries in your deployment descriptor. Give them each unique names.
Why would you want to do this?
How to ask a question...
Simple Servlet Examples
It is sorta covered in the
JavaRanch Style Guide
subject: Create two instance of Servlet
servlet element in web.xml
Servlet intances for application
Create two instances for a servlet
Methods of creating Servlet instance?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013