Disable JNDI on Jetty by default

Our Investigations show that JNDI lookup is quite costly on Jetty and it
was enabled by default while embedded tomcat does not. This commit
excludes `jetty-jndi` to align the behavior with Tomcat.

If you are relying on JNDI, the `jetty-jndi` should simply be added in
your project.

Closes gh-4710
This commit is contained in:
Stephane Nicoll 2016-01-27 17:35:10 +01:00
parent b02073b455
commit 2b2e21dbbf

View File

@ -33,6 +33,12 @@
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>javax-websocket-server-impl</artifactId>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jndi</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>