A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
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
Methods of creating Servlet instance?
servlet element in web.xml
Servlet intances for application
Create two instances for a servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014