[jboss-user] [JNDI/Naming/Network] - Jndi Datasource
allanrj
do-not-reply at jboss.com
Fri Feb 29 10:18:47 EST 2008
Hi guys,
I have a problem to locate datasource, when I run a ejb a i got a error : UNKNOW SOURCE. I am doing any mistake ?
DataSource ds = (DataSource) ic.lookup("java:jdbc/APAESP");
mssql-ds.xml
| <datasources>
| <local-tx-datasource>
| <jndi-name>jdbc/APAESP</jndi-name>
| <use-java-context>false</use-java-context>
| <connection-url>jdbc:microsoft:sqlserver://dbdesenv:1433;DatabaseName=TEST</connection-url>
| <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
| <user-name>sa</user-name>
| <password></password>
| <metadata>
| <type-mapping>MSSQL2000</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133253#4133253
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133253
More information about the jboss-user
mailing list