Hi
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
org.hawkular.commons:hawkular-commons-embedded-cassandra-ear:ear:0.2.4.Final-SRC-revision-52bafa238d3f27e9c0403d3db9861cccb963d64c
in
https://repository.jboss.org/nexus/content/groups/public-jboss/ 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?
Regards
Gary
----- Original Message -----
If you use "@Inject Persona" or "@Inject @CurrentUser
HawkularUser",
keep reading.
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.
From:
@Inject Persona persona;
@Inject @CurrentUser HawkularUser user;
To:
@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.
- Juca.
_______________________________________________
hawkular-dev mailing list
hawkular-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev