Also found this:
https://stackoverflow.com/questions/3837118/cdi-call-interceptor-annotated-method-within-same-instance
Seems to be the same proposed solution on the Spring question...

@ApplicationScoped
@Transactional(value = TxType.SUPPORTS)
public class MyService {

@Injectprivate Provider<MyService> self;

Is this safe/good idea?


On Wed, Feb 14, 2018 at 2:31 PM, Luís Alves <luisalve...@gmail.com> wrote:

> This is not really DS specific, but DS might have some solutions.
>
> I'm using @CacheResult, but if I do a call from the same class the
> interceptor is not triggered so the cache doesn't work. I suffered from the
> same issue with Spring (describe here: https://stackoverflow.com/
> questions/16899604/spring-cache-cacheable-not-working-
> while-calling-from-another-method-of-the-s)
>
> Does DS or someone knows any trick to make this work?
>
> LA
>
>
>

Reply via email to