Mutable static data is the root of all evil ;)

Statics are (almost) impossible to mock and make testing and clustering
very difficult. Is there any way you could refactor your code to use a
singleton service instead of the static?

You could then @EagerLoad the singleton service or initialize it in a
@Startup method and leave the other services to lazy load.

Reply via email to