dcsimg
jndi binding
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhebin_cong
Posted On:   Wednesday, January 8, 2003 07:11 AM

hello in my program,i put the initial parameters in a properties file,then bind the properties file to resource bundle,so that i can get the parameter from the bundle. now i wonder if i can bind the properties file to wls jndi tree,and get the parameter from the jndi?

thank you!

Re: jndi binding

Posted By:   Nick_Maiorano  
Posted On:   Wednesday, January 8, 2003 05:48 PM

Zhebin,



Yes, you can bind properties to a jndi tree and retrieve them later. However, be aware of the fact that the lookups on jndi are expensive. If you do jndi lookups infrequently, (say, only at startup), then this solution is fine. Otherwise, stick with your current implementation.

About | Sitemap | Contact