Hi everyone,
I'm trying to simulate tomcat's jndi mechanism, in order to test my DAO
objects with junit. Does anybody knows how to do that? It seems to me
that I need to bind the name java:/comp/env to a Context object and then
bind my jdbc name to this context. Is this the way tomcat put things
[mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 7 de março de 2008 11:43
Para: Milanez, Marcus
Cc: Tomcat Users List
Assunto: Re: Simultate Tomcat JNDI
Marcus-http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howt
o.html//assume you have this Oracle Datasource definition in your
:[EMAIL PROTECTED]
Enviada em: sexta-feira, 7 de março de 2008 11:50
Para: Tomcat Users List
Assunto: RES: Simultate Tomcat JNDI
Martin,
Thanks for you reply. In fact I need to simulate tomcat's jndi mechanism. My
class will be invoked by jUnit and not by tomcat. I'm trying to bind a
datasource