Given that I have 2 "contexts" defined (which I'm assuming
each has thier own classloader).
After making a request to the same servlet within each
context, I'm witnessing the creation of seperate instances
of the servlet per context, which I would expect, but
I'm also witnessing the sharing of classes
that have static members.
Is this intentional, or is this a bug?
According to Servlet 2.2 spec:
> 4.6 Reloading Considerations
>...
> Therefore, when a Container Provider implements a class
> reloading scheme for ease of development, they must ensure
> that all servlets, and classes that they may use, are loaded
> in the scope of a single class loader guaranteeing that the
> application will behave as expected by the Developer.
...
Thanks,
Rob.