开发者

What are the major motivations to use JNDI for datasources? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We e开发者_运维技巧xpect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I fail to understand why someone would use JNDI.

Can someone high light the major reasons to use JNDI for datasources?


It allows the configuration of resources to be done outside of the code. Before JNDI we use to use config files and have everything in there. With JNDI the developers of the code do not need to be aware of the configuration parameters of a database or queues.


Central management and configuration. It is not the responsibility of the application to wire up the database connection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜