Forums Register Login

More than one servlet per web application

+Pie Number of slices to send: Send
Can we have more than one servlet instances running per web app. If yes then how would servletContext(application Context) be defined then ?
+Pie Number of slices to send: Send
Yes, you can certainly have multiple servlets in a single webapp. The servlet context is a web app level object that could be shared across all the servlets belonging to the web app.
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 874 times.
Similar Threads
What is the difference between ServletContext and ServletConfig
ServletContext Confusion...
Singleton Pattern
****ServletContext and WebApplication confusion****
How Many Action Servlets
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:29:27.