请问BANG,第五章的jndi-definitions.xml

05-05-16 whitefox1317
我的DATASOURCER 的JNDI名为jdbc/mssql,请问jndi-definitions.xml这样配置对吗?

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jndi-definitions PUBLIC "-//Borland Corporation//DTD JndiDefinitions//EN" "http://www.borland.com/devsupport/appserver/dtds/jndi-definitions.dtd">

<jndi-definitions>

<visitransact-datasource>

<jndi-name>serial://datasources/DataSource</jndi-name>

//这一行应该怎么填啊,什么格式????

<driver-datasource-jndiname>serial://datasources/driverDataSource</driver-datasource-jndiname>这一行应该怎么填啊,什么格式????

<property>

<prop-name>connectionType</prop-name>

<prop-type>Enumerated</prop-type>

<prop-value>Direct</prop-value>

</property>

<property>

<prop-name>dialect</prop-name>

<prop-type>Enumerated</prop-type>

<prop-value>none</prop-value>

</property>

</visitransact-datasource>

<driver-datasource>

<jndi-name>serial://datasources/driverDataSource</jndi-name>这一行应该怎么填啊,什么格式????

<datasource-class-name>com.inprise.visitransact.jdbc1w2.InpriseConnectionPoolDataSource</datasource-class-name>这一行应该怎么填啊,什么格式????

<property>

<prop-name>user</prop-name>

<prop-type>String</prop-type>

<prop-value>sa</prop-value>

</property>

<property>

<prop-name>password</prop-name>

<prop-type>String</prop-type>

<prop-value>sa</prop-value>

</property>

<property>

<prop-name>url</prop-name>

<prop-type>String</prop-type>

<prop-value>jdbc:weblogic:mssqlserver4:ehouse@localhost:1433</prop-value>

</property>

<property>

<prop-name>driverClassName</prop-name>

<prop-type>String</prop-type>

<prop-value>weblogic.jdbc.mssqlserver4.Driver</prop-value>

</property>

</driver-datasource>

</jndi-definitions>

BANG老师,能不能帮我解释一下?

banq
2005-05-16 17:42
jndi-definitions.xml在jboss下不用配置,在server/default/conf下,是服务器配置

猜你喜欢