The configuration format is: https://docs.jboss.org/author/display/ARQ/Container+configuration
(the http port and ip is extracted from the server runtime, so no need to specify it in container/protocol if your not overriding what the container returns, e.g. if you execute the tests via a reverse proxy.)
Depending on which JBoss AS contianer implementation you're using, one of the following container/configuration/property sets:
Remote should extract what is needed dynamically, while Managed do the same, it also need to configure which port to check to see if the server is running, which is either httpPort or rmiPort(useRmiPortForAliveCheck).
Container configuration seen here https://docs.jboss.org/author/display/ARQ/Container+configuration contains:
Hovewer parameters described here https://docs.jboss.org/author/display/ARQ/JBoss+AS+6.0+-+Managed are: httpPort and rmiPort. Those parameters are used in different formated arquillian.xml as it's in my first post. So which should I used?
Maybe some of them should be defined in pom.xml...?
I really don't understand need of arquillian.xml while all parameters could be defined in profile in pom.xml .
The port configuration your refering to is for the Servlet Protocol, https://docs.jboss.org/author/display/ARQ/Servlet+3.0
which is different from the Container.
There are plans for support for system properties override of arq.xml, https://issues.jboss.org/browse/ARQ-284 but not completed yet.
It's example you gave to me as an answer for my problem: https://docs.jboss.org/author/display/ARQ/Container+configuration
It contains: <protocol type="Servlet 3.0"> and it contains: <property name="port">8181</property>. You said also "the http port and ip is extracted". And then you are saying this is "for the Servlet Protocol". I'm lost - do I need it or not?
Next you gave me link https://docs.jboss.org/author/display/ARQ/JBoss+AS+6.0+-+Managed to the page with parameters named: httpPort nad rmiPort. But no example how to use them. Do they go into arqillian.xml? How to use them?
For anyone having similiar problem, here is working example:
<?xml version="1.0" encoding="UTF-8"?>
<container qualifier="jbossas" default="true">
<property name="javaVmArguments">-Xms256m -Xmx512m -XX:MaxPermSize=256m</property>