-
1. How to reconfigure Arquillian to non-default configuration?
aslak Apr 28, 2011 9:07 AM (in response to marx3)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:
https://docs.jboss.org/author/display/ARQ/JBoss+AS+6.0+-+Managed
https://docs.jboss.org/author/display/ARQ/JBoss+AS+6.0+-+Remote
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).
-
2. How to reconfigure Arquillian to non-default configuration?
marx3 Apr 28, 2011 9:26 AM (in response to aslak)Container configuration seen here https://docs.jboss.org/author/display/ARQ/Container+configuration contains:
<property name="port">8181</property>
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 .
-
3. How to reconfigure Arquillian to non-default configuration?
aslak Apr 28, 2011 9:34 AM (in response to marx3)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.
-
4. How to reconfigure Arquillian to non-default configuration?
marx3 Apr 28, 2011 9:53 AM (in response to aslak)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?
-
5. How to reconfigure Arquillian to non-default configuration?
marx3 Apr 29, 2011 7:22 AM (in response to marx3)For anyone having similiar problem, here is working example:
<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.com/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jboss="urn:arq:org.jboss.arquillian.jbossas.local60">
<container qualifier="jbossas" default="true">
<configuration>
<property name="profileName">default</property>
<property name="bindAddress">localhost</property>
<property name="httpPort">8280</property>
<property name="rmiPort">1299</property>
<property name="javaVmArguments">-Xms256m -Xmx512m -XX:MaxPermSize=256m</property>
<property name="startupTimeoutInSeconds">1200</property>
<property name="shutdownTimeoutInSeconds">450</property>
</configuration>
</container>
</arquillian>