java - Storing properties in JNDI? Environment specific locations -


I want to access a storage folder but its actual location may vary with the environment Do I store properties in JNDI Can I do something similar to a datasource in Jebos?

Thank you.

Regular way to pass parameter to Java EE application, env-entry By using the deployment descriptor, through the property, they will be bound to JNDI so that you can inject them.

  & lt; Env-entry & gt; & Lt; Env- Login Name & gt; Docroot_path & lt; / Env- Login Name & gt; & Lt; Env entry type & gt; Java.lang.String & lt; / Env entry type & gt; & Lt; Env- Access Price & gt; / Usr / local / foo & lt; / Env- Access Price & gt; & Lt; / Env entry & gt;  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -