Author: dan.j.allen
Date: 2009-04-06 23:43:44 -0400 (Mon, 06 Apr 2009)
New Revision: 10325
Modified:
trunk/seam-gen/resources/glassfish-resources.xml
Log:
use both url and database since different DataSources use different properties for the
JDBC url
add note about empty password
Modified: trunk/seam-gen/resources/glassfish-resources.xml
===================================================================
--- trunk/seam-gen/resources/glassfish-resources.xml 2009-04-07 03:43:11 UTC (rev 10324)
+++ trunk/seam-gen/resources/glassfish-resources.xml 2009-04-07 03:43:44 UTC (rev 10325)
@@ -6,9 +6,10 @@
name="@projectName@Pool"
datasource-classname="@dataSourceClass@"
res-type="javax.sql.DataSource">
+ <property name="database" value="@jdbcUrl@"/> <!--
HSQLDB uses database instead of url -->
+ <property name="url" value="@jdbcUrl@"/>
<property name="user" value="@username@"/>
- <property name="password" value="@password@"/>
- <property name="url" value="@jdbcUrl@"/>
+ <property name="password" value="@password@"/> <!--
Use the value "()" for an empty password -->
</jdbc-connection-pool>
<jdbc-resource
jndi-name="@projectName@Datasource"