For publishing resources via JNDI you'll have to enable JNDI on the Options tab:
This enables JNDI generally but does not publish any resources.
For configuring JNDI resources in Jetty you have to create a Jetty XML configuration file and add it on the WebApp tab in the section Jetty Conext Configuration. The file can either be in the Eclipse workspace (Add...) or somewhere else in the file system (Add External...).
For more information on Jetty JNDI config see http://wiki.eclipse.org/Jetty/Feature/JNDI on the Eclipse site.
The most common case for using JNDI ist configure a data source with connection pool. To accomplish that with Eclipse Jetty you have to follow this steps:
<Configure id="wac" class="org.eclipse.jetty.webapp.WebAppContext"> <New id="myds" class="org.eclipse.jetty.plus.jndi.Resource"> <Arg></Arg> <Arg>jdbc/myds</Arg> <Arg> <New class="com.mchange.v2.c3p0.ComboPooledDataSource"> <Set name="driverClass">oracle.jdbc.OracleDriver</Set> <Set name="jdbcUrl">jdbc:oracle:thin:@localhost:1521:XE</Set> <Set name="user">MYUSER</Set> <Set name="password">MYPASS</Set> </New> </Arg> </New> </Configure>