Galder Zamarreno wrote:
> Galder Zamarreno wrote:
>> Brian Stansberry wrote:
>>> Galder Zamarreno wrote:
>>>> Having looked at this forum post thread
>>>> I wanted to check, specially with Brian, what's the preferred
>>>> method in AS5 to get access to a local cache.
>>> Couple methods, discussed in more detail at
>>> 1) Use the CacheManager to create your cache; the CacheManager is
>>> available in JNDI at java:/CacheManager. See Section 11.2.1.
>>> 2) Use CacheJmxWrapperMBean and it's "cache" mbean attribute.
>>> Simplest way is to deploy it via a -service.xml. Section 5.4.2 of
>>> JBC 3.1 docs at http://tinyurl.com/m49qen
has other methods.
> One thing to note here is that if using CacheJmxWrapperMBean is still
> valid, then we need to clarify whether it's really deprecated or not.
> The JBC code indicates is deprecated indicating that
> JmxRegistrationManager should be used but the latter only offers a way
> to register, it doesn't offer an alternative to get access to it via
> JMX. Mircea, thoughts?
JmxRegistrationManager was thought of as a replacement for
CacheJmxWrapperMBean, which would simplify JMX development by allowing
annotations to be used.
This is approach is not necessarily standing anymore, with development
being done on Infinispan only.
So I guess we can suggest users to use the old code as it does the job.
Fair point. We should probably remove the @deprecate from the class for
3.2 and explain how to use it in javadoc.
In infinispan, we can expose CacheManager as an MBean to have access
Yeah, makes sense. I've assigned it to myself.
Sr. Software Engineer
Infinispan, JBoss Cache