Arquillian uses arquillian.xml to locate and communicate with the container. Typically, this file is placed in the src/test/resources folder. The following arquillian.xml file demonstrates the entries for connecting to a locally installed GlassFish server, which we use in this example:
<?xml version="1.0"?> <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://jboss.org/schema/arquillian" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/ arquillian_1_0.xsd"> <container qualifier="glassfish" default="true"> <configuration> <property name="glassFishHome"> D:glassfish-4.1 </property> <property name="adminHost">localhost</property> <property name="adminPort">4848</property> <property name="adminUser">admin</property> <property name="adminPassword">admin</property> </configuration> </container> </arquillian>