That should be possible - JCSAdminBean will help you to get started. Which JMX implementation would you use?
public String[] getCacheNames() throws CacheException, RemoteException, Exception { List <String> cacheNames = new ArrayList<String>(); JCSAdminBean bean = new JCSAdminBean(); List list = bean.buildCacheInfo(); Iterator it = list.iterator(); while (it.hasNext()) { CacheRegionInfo record = (CacheRegionInfo) it.next(); cacheNames.add(record.getCache().getCacheName()); } return cacheNames.toArray(new String[0]); } On 08/01/2008, Gattu, Praveen <[EMAIL PROTECTED]> wrote: > Al - Thanks for the email. I have my apllication built and running in jdk1.5, > so I am hoping I should be able to create Mbean, and get statistics from > cache, to expose them through JMX. Do you think it would be possible? > > Thanks > -Praveen > > -----Original Message----- > From: Al Forbes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 08, 2008 12:37 PM > To: JCS Users List > Subject: Re: JCS and JMX > > Hi Preveen > > There is nothing in the code for JMX at the moment. > > You could try adding something, but don't forget we are still stuck with JDK > 1.3, so I'm not sure how much success you will have. > > Cheers, > Al > > On 05/01/2008, Gattu, Praveen <[EMAIL PROTECTED]> wrote: > > Folks - I was wondering does JCS come with any inbuilt JMX Mbean to expose > > cache statistics? I am using jcs-1.2.7.3 and I want to expose cache > > statistics like number of hits per region, cache/region sizes etc. and I > > figured exposing them through JMX would be better, as it would give me a > > client to view these stats. > > If there is something already please let me know. > > > > Thanks, > > Praveen > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]