A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
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
I agree. Here's the link:
subject: Create two instance of Servlet
servlet element in web.xml
Create two instances for a servlet
Methods of creating Servlet instance?
Servlet intances for application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015