开发者

In context of WAS, what is the difference between application bounce and jvm bounce

开发者 https://www.devze.com 2023-04-09 11:42 出处:网络
In context of WAS, what is the difference between application bounce and jvm bounce. In case we onl开发者_StackOverflow社区y want to reload the data at server startup , whch one should we go for.The

In context of WAS, what is the difference between application bounce and jvm bounce.

In case we onl开发者_StackOverflow社区y want to reload the data at server startup , whch one should we go for.


The same application can be restarted multiple times while a server is running. If you only want to load data once per server start, then I would recommend placing a class in a shared library associated with a server class loader. This will make it accessible to all applications, and the static variables will retain their contents until the server is restarted. Of course, this also means you cannot update these classes without restarting the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号