A simple Jersey REST Service explaining the @Singleton param and REST service behaviour
Singleton
Creates a new instance for every request, which can be understood by the increment variable value changes
NonSingleton
Does not create a new instance rather use the same one. which is why the increment variable value does not change