S
success_ny
I need to set up a value of type java.net.URL in server.xml so that
it's accessible via JNDI from servlets running under Tomcat.
I.e., I need to set up a value that I can get in the code like this:
URL url = (URL) initialContext.lookup("url/configURL");
How do I do that? I tried the setting below, but it does not seem to
work for the type java.net.URL. Please help. Thanks!
<Resource auth="Container" name="url/configURL" scope="Shareable"
type="java.net.URL"/>
<ResourceParams name="url/configURL">
<parameter>
<name>spec</name>
<value>file:///C:/conf_files</value>
</parameter>
</ResourceParams>
it's accessible via JNDI from servlets running under Tomcat.
I.e., I need to set up a value that I can get in the code like this:
URL url = (URL) initialContext.lookup("url/configURL");
How do I do that? I tried the setting below, but it does not seem to
work for the type java.net.URL. Please help. Thanks!
<Resource auth="Container" name="url/configURL" scope="Shareable"
type="java.net.URL"/>
<ResourceParams name="url/configURL">
<parameter>
<name>spec</name>
<value>file:///C:/conf_files</value>
</parameter>
</ResourceParams>