Hello guys,

i expect beans and servlets to behave different?
As i know servlets should only be instanced once in the servlet 
container, and each request should be handled by the same instance of 
the servlet. To handle different data for different users, you need to 
use session tracking and storing data with the 
HttpSession.setAttribute-methods.
Each time a java resource uses a bean, there will be a new instance of 
this bean.
But exactly that's the point: if you develop a servlet based on a bean, 
this servlet will only be instantiated once, and therefor there will be 
only one instance of this bean.

Am i right?

Would be nice to get some corrections to this, as i'm not too sure about 
my own understanding of beans and bean behaviour...

Thanks,
Fabian


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to