Setting MBean
Forum » projects / jmxterm » Setting MBean
Started by: Haydn (guest)
On: 1248264794|%e %b %Y, %H:%M %Z|agohover
Number of posts: 3
rss icon RSS: New posts
Setting MBean
Haydn (guest) 1248264794|%e %b %Y, %H:%M %Z|agohover

I'm trying to test jmxterm, unfortunately I can't set the MBean (although I can set the domain). From the below output of "beans" what exactly is the "bean" command to set the MBean to that showed below?

$>domain foo.baa.cluster
#domain is set to foo.baa.cluster
$>beans
#domain = foo.baa.cluster:
foo.baa.cluster:module-name=cluster
$>

No matter what arguments I pass to the "bean" command I always get a Bean name isn't valid error.

Reply  |  Options
Unfold Setting MBean by Haydn (guest), 1248264794|%e %b %Y, %H:%M %Z|agohover
Re: Setting MBean
Haydn (guest) 1248267566|%e %b %Y, %H:%M %Z|agohover

Actually, the real MBean name has a hypen, e.g:

foo-baa.xyz.cluster:module-name=cluster

Looking at PATTERN_PROPERTIES in the source, it uses the word regex "\w", I don't think this allows for hyphens although I haven't coded in java in a long time.

Reply  |  Options
Unfold Re: Setting MBean by Haydn (guest), 1248267566|%e %b %Y, %H:%M %Z|agohover
Re: Setting MBean
crazytmaccrazytmac 1248417729|%e %b %Y, %H:%M %Z|agohover

Did you try escaping dash with \? I never had a name with dashes but \ can escape white space without problem.

So try "bean module\-name=cluster". If you still see an error, please feel free to report a bug in http://wiki.cyclopsgroup.org/jmxterm:support. Thanks.

Reply  |  Options
Unfold Re: Setting MBean by crazytmaccrazytmac, 1248417729|%e %b %Y, %H:%M %Z|agohover
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License