jsf - What is the difference between @Scope("session") and @SessionScoped -
this question has answer here:
i following this tutorial.
it uses @scope("session") , @sessionscoped in different implementations.
what differences?
it explained in tutorial:
mixed use of both jsf , spring annotations working fine, weird , duplicated – @component , @managedbean together. actually, can uses single @component, see following new version, it’s pure spring, , works!
so @sessionscoped jsf solution. , @scope("session") pure spring solution.
using @sessionscoped make application more portable, when example want switch java ee. using spring-di gives more consistent implementation.
Comments
Post a Comment