V
V
Viktor Potapov2016-04-12 09:51:03
Java
Viktor Potapov, 2016-04-12 09:51:03

Is it possible to get the java.util.Property element in web.xml using jndi?

If desired, we can get some jndi resource in web.xml with a construction of the form

<resource-ref>
                <res-ref-name>resourceName</res-ref-name>
                <res-type>java.lang.String</res-type>
                <lookup-name>resourceName</lookup-name>
        </resource-ref>

So, we have java.util.Properties declared in glassfish's JNDI, which has a set of values. The question is, can we get a VALUE from this object in web.xml with some similar construction, i.e. something of the kind
<resource-ref>
                <res-ref-name>resource/javaProperty</res-ref-name>
                <res-type>java.lang.String</res-type>
                <lookup-name>resource/javaProperty/myPropertyName</lookup-name>
        </resource-ref>

Are there similar possibilities?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question