I have one question. PS. I,m new to JNDI. (see #1)
I'm looking to bring <env-entry> <resource...> from a web.xml into grizzly.
I know that we don't have a jndi implementation, but I want to know how that
works.
I was looking around and I saw that Jetty have there implementation, Tomcat,
GF... and there are few like SimpleJNDI, I found OpenEJB..
there are look to have this similar :
Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"....InitialContextFactory");
initialContext = new InitialContext(properties);
and I found this :
All thats required is to define this jndi.properties on the classpath
-Djava.naming.factory.initial=....
there an article on SUN
http://java.sun.com/products/jndi/tutorial/beyond/env/source.html
#1 - my Question is this:
Why I'm lost ? There is a way to have a default JNDI handler with no code
involve ? Suppose that I want to handle all jndi type from a web.xml, is it
possible without implementing EJB, persistance... ?
ok.. #2 - is it possible to have a JNDI for datasource and one that handle
EJB ?
--
-------------
A+
Sébastien.
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant