-
1. Re: use seam gen to connect to mssql server
norman.richards Jan 12, 2007 11:15 AM (in response to jovijojo)Can you show the seam-generated ds.xml and your hand-generated one?
-
2. Re: use seam gen to connect to mssql server
jovijojo Jan 12, 2007 2:38 PM (in response to jovijojo)thanks for the reply:
seam-gen generated ds.xml
-----------------
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>ndpjDatasource</jndi-name>
<connection-url>jdbc:hsqldb:.</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<!--
<exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
-->
</local-tx-datasource>
-----------------------------
then i modified this ds.xml to connect to mssql server
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>ndpjDatasource</jndi-name>
<connection-url>jdbc:jtds:sqlserver://localhost:1433;DatabaseName=ndpj;SelectMethod=cursor</connection-url>
<driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
<user-name>sa</user-name>
sa
<!--
<exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
-->
</local-tx-datasource>
--------------
it ONLY work when you connect to hypersonic db first, then modify the ds.xml to connect to sql server, it will NOT work if you use seam gen directly connect to mssql server!!!
strange. -
3. Re: use seam gen to connect to mssql server
atzbert Jan 12, 2007 3:03 PM (in response to jovijojo)Well, all i can say is that it worked for me :).
Does it not even generate the ds or is the generated one not working? -
4. Re: use seam gen to connect to mssql server
norman.richards Jan 12, 2007 8:53 PM (in response to jovijojo)Can you please show the seam-generate ds.xml that is failing to connect to MSSQL?