added jndi and jaas dependencies

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2020-09-22 13:28:10 +02:00
parent 3768b09d6f
commit d1f6cbb9da
3 changed files with 10 additions and 7 deletions

View File

@ -17,11 +17,11 @@
<p>To enable JAAS in a base jetty instance do:
<pre>
$ cd $JETTY_BASE
$ java -jar $JETTY_HOME/start.jar --add-to-start=jaas
$ java -jar $JETTY_HOME/start.jar --add-module=jaas
</pre>
</p>
<p>This will create a $JETTY_BASE/start.d/jaas.ini file to enable and parameterize JAAS. If no start.d directory exists, then the same initialisation will be appended to the
$JETTY_BASE/start.ini file. The Jetty demo-base already has JAAS enabled in its start.ini file. </p>
<p>This will create a $JETTY_BASE/start.d/jaas.ini file to enable and parameterize JAAS.
The Jetty demo-base already has JAAS enabled by the demo-jaas module. </p>
<p>The full source of this demonstration is available <a
href="https://github.com/eclipse/jetty.project/blob/master/tests/test-webapps/test-jaas-webapp">here</a>.</p>

View File

@ -8,8 +8,10 @@ demo
webapp
[depends]
plus
deploy
ext
jdbc
plus
[files]
basehome:modules/demo.d/demo-jndi.xml|webapps/demo-jndi.xml

View File

@ -22,11 +22,12 @@ This example shows how to configure and lookup resources such as DataSources, a
<p>To enable JNDI in a base jetty instance do:
<pre>
$ cd $JETTY_BASE
$ java -jar $JETTY_HOME/start.jar --add-to-startd=jndi
$ java -jar $JETTY_HOME/start.jar --add-module=jndi
</pre>
</p>
<p>This will create a $JETTY_BASE/start.d/jndi.ini file to enable and parameterise JNDI. If the --add-to-start option instead, then the same initialisation will be appended to the
$JETTY_BASE/start.ini file instead. The jetty demo-base already has JNDI enabled in the start.ini file and some mock resources included. </p>
<p>This will create a $JETTY_BASE/start.d/jndi.ini file to enable and parameterise JNDI.
The jetty demo-base already has JNDI enabled and some mock resources included by the
demo-jndi module. </p>
<p>The full source of this demonstration is available <a href="https://github.com/eclipse/jetty.project/blob/master/tree/tests/test-webapps/test-jndi-webapp">here</a>.</p>