-
1. Re: Arquillian run .cli scripts for Jboss AS 7
ssilvert Oct 17, 2012 9:28 AM (in response to crytek)There are ways to execute CLI commands using any JVM language. Depending on which AS7 version you are using, you may find some of these links useful:
JBoss AS7 Command-line public API
Advanced CLI scripting with Groovy, Rhino, Jython, etc.
Using the CLI remote client jar
However, for most purposes, a better approach during testing is to just substitute your own version of standalone.xml. That way, you don't need to change anything after Arquillian starts the server. I have an example of this in my cli-resolver project here:
https://github.com/ssilvert/cli-resolver
Stan
-
2. Re: Arquillian run .cli scripts for Jboss AS 7
crytek Oct 17, 2012 10:12 AM (in response to ssilvert)The fact is that I am using arquillian with a remote jboss AS adapter. This means that I cannot start/stop the server. I am NOT using a jboss as managed adapter.
I want to use inside my arquillian test a .cli script file that I want to run it in the context of the remote container specified inside arquillian.xml (so that I shouldn't specify again the address and port whereto I should connect with cli)
-
3. Re: Arquillian run .cli scripts for Jboss AS 7
crytek Oct 17, 2012 10:14 AM (in response to crytek)Also, if I am using the jboss remote adapter, it is possible to use my own standalone.xml file ?