This is the same issue - I got. We are solving it by writing a custom JMX client that handles the naming issue.

Thanks

Ben

On Mon, Sep 29, 2008 at 12:36 PM, Rosvall, Sven <rosvall@amazon.com> wrote:
Ben,
I got the same problem. My monitoring framework requires a fixed name. And I want to get hold of the attributes from the PooledDataSource  mbean. And JConsole shows this name as "PooledDataSource [2t8xzr7w1807yi21lc7l2i|11d3226]". Is this the same problem you have?
 
http://www.mchange.com/projects/c3p0/index.html#configuration_properties  describes why this is a feature. It also describes how to adjust the name. Search for "VMID". However setting the VMID to NONE only skips the one part of the id. I still get a name like "PooledDataSource [11d3226]" where the hex part is changing everytime I restart my service.
 
I too would appreciate a way to have a fixed name for this mbean.
 
Any pointers are most welcome.
        / Sven
 
From: Ben Gidley <ben@gi...> - 2008-09-03 12:37
Hi,
We have c3p0 exposing itself to JMX and we want to be able to automatically
monitor it. However we are having trouble working out the name of the JMX
Object name. Is there a way of setting this to a known value?

Thanks

Ben
 
Amazon Data Services Ireland Limited registered office: Riverside One, Sir John Rogerson's Quay, Dublin 2, Ireland. Registered in Ireland. Registration number 390566.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
c3p0-users mailing list
c3p0-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/c3p0-users