Glassfish Embedded Configuration
rdc2001 Mar 21, 2011 2:06 PMHello,
I've been reading over the docs all morning and am rather puzzled. Below is the my Arquillian xml file from Alpha4 - what's the equivalent for 5?
arquillian.xml
<arquillian xmlns="http://jboss.com/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:glassfish="urn:arq:org.jboss.arquillian.container.glassfish.embedded_3">
<glassfish:container>
<glassfish:instanceRoot>src/test/resources/glassfish</glassfish:instanceRoot>
<glassfish:bindPort>9090</glassfish:bindPort>
<glassfish:autoDelete>false</glassfish:autoDelete>
</glassfish:container>
</arquillian>
The example from the Alpha5 documentation looks much different (I know this is for a remote container):
<arquillian xmlns="http://jboss.com/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="jbossas" default="true">
<configuration>
<property name="providerUrl">jnp://test.example.com:1099</property>
</configuration>
<protocol type="Servlet 3.0">
<configuration>
<property name="host">test.example.com</property>
<property name="port">8181</property>
</configuration>
</protocol>
</container>
</arquillian>
Is there an example somewhere with an embedded glassfish container? I thought about doing something like this:
<arquillian xmlns="http://jboss.com/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="myglassfish" default="true">>
<protocol type="Servlet 3.0">
<configuration>
<property name="configurationXml">domain.xml</property>
</configuration>
</protocol>
</container>
</arquillian
But I wasn't sure how Arquillian would know that I am using Glassfish and not JBoss etc. I wasn't even that this is what I am supposed to do.
Related to this question is how the PersistenceDescriptor works. In src/test/resources/glassfish/config I place an domain.xml with configured datasources. In my test's create deployment I had this statement "addManifestResource("test-persistence.xml", ArchivePaths.create("persistence.xml"))." How do I replicate the my old stuff with the PersistenceDescriptor? Does the descriptor synthesize a file for me?
Thanks,
-Ryan
PS. I like the changes.