GlassFish的嵌入式服務器我用arquillian.xml以下行來指定我resource.xml當我用tomee設置arquillian時,我應該如何指向我的resource.xml?
arquillian.xml
<container qualifier="glassfish-embedded" >
<configuration>
<property name="resourcesXml">
src/test/resources-glassfish-embedded/glassfish-resources.xml
</property>
</configuration>
</container>
與GlassFish resources.xml中
<resources>
<jdbc-resource pool-name="ArquillianEmbeddedDerbyPool"
jndi-name="jdbc/arquillian"/>
<jdbc-connection-pool name="ArquillianEmbeddedDerbyPool"
res-type="javax.sql.DataSource"
datasource-classname="org.apache.derby.jdbc.EmbeddedDataSource"
is-isolation-level-guaranteed="false">
<property name="databaseName" value="target/databases/derby"/>
<property name="createDatabase" value="create"/>
</jdbc-connection-pool>
</resources>
現在我我試圖使用tomee,但無法連接到我的數據庫,因爲我無法像使用glassfish一樣指出我的resource.xml。
這裏是我想知道在tomee與arquillian.I指定資源將欣賞替代設置這表明resourcesXml屬性不與Tomee(在Arquillian.xml)支持的警告
WARNING: Configuration contain properties not supported by the backing object org.apache.openejb.arquillian.embedded.EmbeddedTomEEConfiguration
Unused property entries: {resourcesXml=
src/test/resources-glassfish-embedded/glassfish-resources.xml
}
在這方面的任何幫助。
這裏是一堆TomEE,Arquillian的例子,http://svn.apache.org/repos/asf/tomee/tomee/tags/tomee-1.5.2/arquillian/ – Yashar