| 1 |
<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd"> |
| 2 |
|
| 3 |
<!-- =============================================================== --> |
| 4 |
<!-- Configure the test-jndi webapp --> |
| 5 |
<!-- =============================================================== --> |
| 6 |
<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext"> |
| 7 |
|
| 8 |
<New id="tx" class="org.eclipse.jetty.plus.jndi.Transaction"> |
| 9 |
<Arg> |
| 10 |
<New class="com.acme.MockUserTransaction"/> |
| 11 |
</Arg> |
| 12 |
</New> |
| 13 |
|
| 14 |
<!-- =============================================================== --> |
| 15 |
<!-- Configure the webapp --> |
| 16 |
<!-- =============================================================== --> |
| 17 |
<!-- Only uncomment if you are not using etc/jetty-plus.xml from start.ini |
| 18 |
|
| 19 |
<Set name="configurationClasses"> |
| 20 |
<Call class="org.eclipse.jetty.webapp.Configuration$ClassList" name="serverDefault"> |
| 21 |
<Arg><Ref refid="Server" /></Arg> |
| 22 |
<Call name="addAfter"> |
| 23 |
<Arg name="afterClass">org.eclipse.jetty.webapp.FragmentConfiguration</Arg> |
| 24 |
<Arg> |
| 25 |
<Array type="String"> |
| 26 |
<Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item> |
| 27 |
<Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item> |
| 28 |
<Item>org.eclipse.jetty.annotations.AnnotationConfiguration</Item> |
| 29 |
</Array> |
| 30 |
</Arg> |
| 31 |
</Call> |
| 32 |
</Call> |
| 33 |
</Set> |
| 34 |
--> |
| 35 |
|
| 36 |
<Set name="contextPath">/test-jndi</Set> |
| 37 |
<Set name="war"><Property name="jetty.webapps" default="."/>/test-jndi.war</Set> |
| 38 |
<Set name="extractWAR">true</Set> |
| 39 |
<Set name="copyWebDir">false</Set> |
| 40 |
<Set name="configurationDiscovered">true</Set> |
| 41 |
|