but am having problems due to having more than one datasource in my configuration, each tend to look like com.mchange.v2.c3p0:type=PooledDataSource,identityToken=2rwamz9c19cpp43706039|78d50a3c,name=ccsDataSource in jconsole, but trying to use, for instance: http://<host>/<context>/monitoring?jmxValue=com.mchange.v2.c3p0:type=PooledDataSource,identityToken=2rwamz9c19cpp43706039|78d50a3c,name=ccsDataSource.numBusyConnections throws
java.lang.IllegalArgumentException: com.mchange.v2.c3p0:type=PooledDataSource,identityToken=2rwamz9c19cpp43706039
caused by
javax.management.MalformedObjectNameException: Key properties cannot be empty
I attempted to encode the ID string, but it won't recognise the encoding for | for whatever reason. Are you aware of another/better way to obtain this property via javamelody? I realise I can just define my own jmx beans and get the data out internally, but for a variety of reasons, it will be better if I can use the javamelody API.
Thanks,
Thomas