When I upgrade to 2.0.2.Final, with parent 26, I get:
[ERROR] Failed to execute goal on project hawkular-btm-dist: Could not resolve
dependencies for project org.hawkular.btm:hawkular-btm-dist:pom:0.5.1.Final-SNAPSHOT:
Failure to find
was cached in the local
repository, resolution will not be reattempted until the update interval of
jboss-public-repository-group has elapsed or updates are forced -> [Help 1]
It doesn't seem to trigger local build of the src-deps. Any ideas why?
----- Original Message -----
If you use "@Inject Persona" or "@Inject @CurrentUser
If all you consume from Accounts are the Services ("@Inject
PermissionChecker" or "@Inject BlaService"), you are not affected.
Still, you should update to Accounts 2.0.2.Final.
On Accounts code, I was mis-using a behavior of WF8/WF9, where it was
possible to inject request-related beans into stateless beans. More
concretely, I was able to inject the persona for the current request
into a SLSB. With WF10, the bean pooling is now enabled by default,
meaning that beans created for a persona are pooled and re-used on
future requests. In this case, user "X" would make a request and the
bean would see it as being from user "Y".
This is being fixed in Accounts 2.0.2.Final, which also comes with the
update to WF 10.
Unfortunately, I could not find a reasonable workaround for current
consumers of Accounts that are using direct injection, so, you'll need
to change your code.
@Inject Persona persona;
@Inject @CurrentUser HawkularUser user;
@Inject Instance<Persona> personaInstance;
@Inject @CurrentUser Instance<HawkularUser> userInstance;
If your component has no changes required to work on WF 10, let me know
and I'll send a PR for this change. Otherwise, please incorporate such
change when changing your code to work on WF 10.
Code changes are required *only* is you use direct injection. If you get
the current persona via PersonaService#getCurrent, you should just
update to Accounts 2.0.2.Final.
hawkular-dev mailing list