Galder Zamarreno wrote:
Brian Stansberry wrote:
> Galder Zamarreno wrote:
>> Hi,
>>
>> Having looked at this forum post thread
>>
(
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235313#...),
>> 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
http://tinyurl.com/lq688t
> section 11.2
>
> 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?
Cheers,
--
Galder ZamarreƱo
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat