Thanks Joakim for explanation.

On Thu, Mar 14, 2019 at 7:54 PM Joakim Erdfelt <[email protected]> wrote:

> `javax.mail.Session.getDefaultInstance()` is singleton and based on the
> fact that it's in the `javax` package namespace that means it's loaded by
> the Server classpath.
>
> A hot (re)deploy of a webapp will have no impact on a server loaded
> component.
>
> You'll have to restart your server when you make those kinds of changes.
>
> Joakim Erdfelt / [email protected]
>
>
> On Wed, Mar 13, 2019 at 6:29 AM kapil gupta <[email protected]>
> wrote:
>
>> Hi,
>>
>> We are using javax.mail.Session.getDefaultInstance() in our code, and it
>> returns static object. Now if we do any changes then still this static
>> object is returned, if we do hot deployment and do the changes for it then
>> still it returns the same object instead of updated object.
>> When we restart jetty then it works fine. Please let me know why the
>> static objects are not replaced in hot deployment.
>>
>> Thanks,
>> Kapil
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to