G
gk
say, i have made a servlet (say MyServlet ) and have put an entry in
the web.xml .
Now an user calls this servlet ......what happens after this ?
does an servlet instance is created by the container as soon as user
calls it ?
how those user inputs are passed to the servlet ?
say, 5 users calls the servlet at a time , does the container creates 5
instance at a time ?
what happens when the the business logic is served by the container
......does it automatically destroyed by the container ?
I know the servlet life cycle .
but how it will work in this situation is a matter of worriness.
is this flow correct ?
instance created by container when user calls ----->servlet init()
methods activates ---->then doget/dopost activates ---->process
business logic in doget/dopost ----->servlet is destroyed.
is it a correct flow ?
the web.xml .
Now an user calls this servlet ......what happens after this ?
does an servlet instance is created by the container as soon as user
calls it ?
how those user inputs are passed to the servlet ?
say, 5 users calls the servlet at a time , does the container creates 5
instance at a time ?
what happens when the the business logic is served by the container
......does it automatically destroyed by the container ?
I know the servlet life cycle .
but how it will work in this situation is a matter of worriness.
is this flow correct ?
instance created by container when user calls ----->servlet init()
methods activates ---->then doget/dopost activates ---->process
business logic in doget/dopost ----->servlet is destroyed.
is it a correct flow ?