开发者

What is the best practices to store database connection related information?

I want to know wh开发者_运维问答at is the best practices to store database connection related information? What i know is ResourceBundle which uses a properties file is used for localization and is not suitable for storing database connection related information. What could be the other best way to store this information in java?


  1. Property Files.
  2. web.xml (Relevant read - Context XML File)
  3. System class's jdbc.drivers property
  4. Specify it on the server settings with JNDI (Application server/Web container, Tomcat Connection pooling relevant read - JNDI DBCP Connection Pool)


you can also get those info from xml

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜