Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Jetty/Feature/JNDI

< Jetty‎ | Feature
Revision as of 04:42, 7 June 2010 by Janb.webtide.com (Talk | contribs) (New page: {{Jetty Feature | introduction = Jetty supports java:comp/env lookups in webapps. This is an optional feature, and as such some setup needs to be done. However, if you're using the [[htt...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Introduction

Jetty supports java:comp/env lookups in webapps. This is an optional feature, and as such some setup needs to be done. However, if you're using the [Hightide] distribution of jetty, then this feature is already fully enabled for you, so you can skip any setup steps, and read the section on how to put objects into jetty's JNDI so that you can retrieve them at runtime.

Feature

Setup

Firstly, to enable JNDI for a web application, you need to configure the WebAppContext corresponding to your webapp to look for resource declarations in the web.xml file and perform the java:comp/env linkages.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.