Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] HOT deployment doesn't support static object repalce

`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 / joakim@xxxxxxxxxxx


On Wed, Mar 13, 2019 at 6:29 AM kapil gupta <kapilgupta82@xxxxxxxxx> 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
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top