I'm running two jboss 7.1.1 instances in domain mode with some servers belonging to different groups.
I need to write a bash script to start and stop servers and I think that it should be possible trough the jboss-cli but up to now I was not able to write anything that worked.
Thank you very much.
For all those interested to this question the solution that I found was to use the jboss-cli.sh via batch mode:
$ cat ./test.cli
Then I can call the jboss-cli.sh in a bash script to execute this commands.