Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domain with "#" in between cannot be set #4

Open
cywjackson opened this issue May 3, 2013 · 3 comments
Open

domain with "#" in between cannot be set #4

cywjackson opened this issue May 3, 2013 · 3 comments

Comments

@cywjackson
Copy link

In our app, we have domains with "#" in between, eg: aaa#bbb#ccc#

using jconsole eg, we could select the domain

but when try to set the domain in the jmxterm, it got truncated (left with aaa), and hence the domain cannot be set.

but the "domains" command is able to list it.

in src/main/java/org/cyclopsgroup/jmxterm/cc/CommandCenter.java , the doExecute(String command) method truncate the # , why?

    // Truncate command if there's # character
    int commandEnds = command.indexOf( '#' );
    if ( commandEnds != -1 )
    {   
        command = command.substring( 0, commandEnds );
    }  
@jiaqi
Copy link
Owner

jiaqi commented May 11, 2013

Will look into it...

@jiaqi
Copy link
Owner

jiaqi commented May 11, 2013

It was to support script with comment in the same line like

some action #this is comment

which is common in some programming language like PERL. I think with some improvement, Jmxterm should at least allow user to use domain command with double quotes around domain name containing #.

@cbarbara-okta
Copy link

we also have beans with "#" in their names, because there may be multiple automatically registered.
So currently we cannot run commands like:

info -b com.company.scheduling:name=com.company.scheduling.TargetBean#0,type=TargetBean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants