since it's proxied...it should be OK...I guess it's like  Spring's
repositories.

On Fri, Apr 20, 2018 at 9:44 AM, Luís Alves <[email protected]> wrote:

> Hi,
>
> @Repository is @Dependent scoped...and seems that @Dependent don't run
> interceptors, so @CacheResult(cacheName = "my-cache") annotation isn't
> working :(
> I remember that some one proposed that @Repository could/should be
> @ApplicationScoped...if  I change them do I have to worry with anything? My
> EntityManager producer is the following:
>
>     @Produces
>     @RequestScoped
>     public EntityManager get()
>     {
>         return entityManager;
>     }
>
> I suppose I'll have a different EM for each HTTP request / MDB onMessage()
> / @Scheduled(cronExpression ="....")...am I correct?
>
> regards,
> LA
>

Reply via email to