tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Update of "HowTo/FasterStartUp" by KonstantinKolinko
Date Mon, 25 Nov 2013 00:05:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "HowTo/FasterStartUp" page has been changed by KonstantinKolinko:
https://wiki.apache.org/tomcat/HowTo/FasterStartUp?action=diff&rev1=18&rev2=19

Comment:
Add link to the migration guide.

  
  Other features that require scanning are:
  
-  *  Discovery of tag libraries &mdash; scanning for Tag Library Descriptor files (`META-INF/**/*.tld`)
(shortened as TLD scanning)
+  *  Discovery of tag libraries. That is scanning for Tag Library Descriptor files (`META-INF/**/*.tld`)
(shortened as TLD scanning)
  
  The TLD scanning is done at startup, because a library can define a `Listener` in its TLD
file.
  
@@ -37, +37 @@

  
  There are two options that can be specified in your `WEB-INF/web.xml` file:
  
-  1. `metadata-complete="true"` attribute on the `<web-app>` element.
+  1. Set `metadata-complete="true"` attribute on the `<web-app>` element.
-  2. an empty `<absolute-ordering />` element.
+  2. Add an empty `<absolute-ordering />` element.
  
+ Setting `metadata-complete="true"` disables scanning your web application and its libraries
for classes that use annotations to define components of a web application (Servlets etc.).
The `metadata-complete` option is not enough to disable all of annotation scanning. If there
is a SCI with a `@HandlesTypes` annotation, Tomcat has to scan your application for classes
that use annotations or interfaces specified in that annotation.
- Setting `metadata-complete="true"` disables scanning your web application and its libraries
for classes that use annotations to define components of a web application (Servlets etc.).
- 
- The `metadata-complete` option is not enough to disable all of annotation scanning. If there
is a SCI with a !HandlesTypes annotation, Tomcat has to scan your application for classes
that use annotations or interfaces specified in that annotation.
  
  The `<absolute-ordering>` element specifies which web fragment JARs (according to
the names in their `WEB-INF/web-fragment.xml` files) have to be scanned for SCIs, fragments
and annotations. An empty `<absolute-ordering/>` element configures that none are to
be scanned.
  
@@ -50, +48 @@

  An example of a container-provided SCI is in the WebSocket API implementation jar (`tomcat-websocket.jar`,
`tomcat7-websocket.jar`) which is included with Tomcat 7 starting with 7.0.47. If you do not
need support for WebSockets, you may remove it.
  
  Scanning for web application resources and TLD scanning are not affected by these options.
+ 
+ See also a chapter in [[http://tomcat.apache.org/migration-7.html#Annotation_scanning|Tomcat
7 migration guide]].
  
  == Exclude JARs from scanning ==
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message