Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
servlet init() called more than once
ravisha andar
Ranch Hand
Posts: 55
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
As per my reading the
servlets
init() method is called only once.
Is there any scenario in which it is called more than once ?
What happens whe we implement the singlethread model?
Thanks
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
No. Not for the same servlet instance.
You should
never implement the single
thread
model.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
ravisha andar
Ranch Hand
Posts: 55
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks.
i will not implement.
I was asking for my knowledge. Since if we imement single threadmodel we get a new instance for each request, will the init() and destroy be called for each instance
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
finalize() problem
Does synchronized works in a servlet init function?
Servlet Lifttime
Writing scheduled task with start and end time
finalize() called more than once
More...