But there is an alternative if you want (or must) stick with the command line alternative – twiddle. The twiddle tool is not new and has been around since JBoss 4.3. And here follows a short walk through by examples.
To print out help information use:
$ ./twiddle.sh -h
Here you see the most imported commands: info, get, invoke and setattrs.
To get attribute and operation info:
$ ./twiddle.sh info jboss:service=JNDIView
To get attribute value:
$ ./twiddle.sh get jboss:service=JNDIView StateString
To invoke an operation:
$ ./twiddle.sh invoke jboss:service=JNDIView list true
No comments:
Post a Comment