[weld-commits] Weld SVN: r6115 - doc/trunk/reference/en-US.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Apr 14 06:29:36 EDT 2010


Author: mazi
Date: 2010-04-14 06:29:36 -0400 (Wed, 14 Apr 2010)
New Revision: 6115

Modified:
   doc/trunk/reference/en-US/environments.xml
Log:
WELDX-84, WELDX-23: docs

Modified: doc/trunk/reference/en-US/environments.xml
===================================================================
--- doc/trunk/reference/en-US/environments.xml	2010-04-14 10:18:45 UTC (rev 6114)
+++ doc/trunk/reference/en-US/environments.xml	2010-04-14 10:29:36 UTC (rev 6115)
@@ -174,13 +174,9 @@
          </para>
       
          <para>
-            Weld also supports Servlet injection in Tomcat. To enable this, place the
-            <literal>weld-tomcat-support.jar</literal> in <literal>$TOMCAT_HOME/lib</literal>, and add the following to
-            <literal>META-INF/context.xml</literal>:
+            Weld also supports Servlet injection in Tomcat 6.
          </para>
-      
-         <programlisting role="XML"><![CDATA[<Listener className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/>]]></programlisting>
-         
+
       </section>
 
       <section>
@@ -219,9 +215,18 @@
          </para>
 
          <para>
-            Weld does not currently support Servlet injection in Jetty.
+            Weld also supports Servlet injection in Jetty 6. To enable this, add the file
+            <literal>META-INF/jetty-web.xml</literal> with the following content to your war:
          </para>
 
+         <programlisting role="XML"><![CDATA[<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
+   "http://jetty.mortbay.org/configure.dtd">
+<Configure id="webAppCtx" class="org.mortbay.jetty.webapp.WebAppContext">
+   <Call class="org.jboss.weld.environment.jetty.WeldServletHandler" name="process">
+      <Arg><Ref id="webAppCtx"/></Arg>
+   </Call>
+</Configure>]]></programlisting>
+
       </section>
 
    </section>



More information about the weld-commits mailing list