I have an application that is deployed on a Glassfish server, for which methods are invoked remotely (using standard JNDI and RMI over IIOP features). I would like to install some caching features on client, to avoid both multiple network calls and optimize application behaviour.
So, how could I have a caching feature for which, optimaly,
- I declare what remote interface calls can be cached using an annotation on interface
- all the caching is handled transparently
Optionnally, I must mention my client app gets used remote EJB instances using Weld, which can optionally be used to intercept EJB method calls.