oops: just to make sure - I'm referring to the @PreDestroy part of Nimo's posting.
Concerning the getter / setter part: ASFAIK, those are called multiple times because of the inherent JSF-lifecycle. This means that there is nothing
to be resolved, it's just in the inherent nature of the technology....
the reason is found in:
I had this
instead of this
So I imported the jsf-scopes instead of the cdi-scopes.
Would be nice, if CDI would warn or returns an deployement-error,
if it detects a scope of a jsf-version instead of a scope of the cdi-version.
One should not be allowed to use the scope of a jsf-version in a CDI-Environment
- so this should return a deployement error (or at least a warning)!