0
我在jboss中使用PostgreSQL作爲數據庫。但是,我給關於PostgreSQL的JBoss的最大信息我的系統上是在jboss中指定PostgreSQL的路徑
<jndi-name>PostgresDS</jndi-name>
<connection-url>jdbc:postgresql://localhost:5432/postgres</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
怎樣的JBoss知道PostgreSQL是位於系統?任何我沒有指定路徑信息的地方?
好的..但什麼是jndi的名字。標準jbosscmp.xml中的以下內容 - java:/ PostgresDS \t postgresq –
Ashwin
2012-04-17 09:00:03
JNDI名稱是,以及JNDI名稱。這是識別JavaEE環境中的資源的一種方法:http://www.oracle.com/technetwork/java/jndi/index.html這也在JavaEE教程中涵蓋:http://docs.oracle.com/javaee /6/tutorial/doc/bncjh.html – 2012-04-17 09:02:58