Hi

not sure it is merged in tomee envrt ATM but env-entries.properties should
work -> http://tomee.apache.org/custom-injection.html

in all cases a sample showing it doesn't work will make your issue easier
to look.

PS: using cdi and deltaspike config is another good solution avoiding to
rely on jndi

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/5/20 Caroline <[email protected]>

> Hi all,
>
> I want to be able to get an absolute path I define in context.xml.
>
> I was under the impression I should be able to put the following in
> context.xml and it would be added to JNDI:
>
> <Environment name="AREE_FILES"
>         description="Absolute Path to Files folder" override="false"
>         type="java.lang.String"
>         value="/usr/local/apache-tomee-plus-1.5.2/Aree-files/" />
>
> So that I can get the value by accessing the JNDI AREE_FILES resource
> through the InitialContext.
>
>
> What am I missing out on?
>
> Thanks!
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Access-Environment-value-from-context-xml-tp4663076.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to