[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - *-ds.xml not being bound to JNDI Name
jej2003
do-not-reply at jboss.com
Fri Apr 4 15:03:18 EDT 2008
What is required to have a *-ds.xml file deploy under JBoss? I am going through http://www.eclipse.org/webtools/dali/docs/tutorial_1.0/dali_jsf_tutorial.htm and trying to modify it to use Hibernate provided by JBoss. Currently my persistence.xml file species all the JDBC connection information but I would like to replace this information with something like
| <persistence...>
| <persistence-unit name="default">
| <class>...</class>
| <jta-data-source>java:jdbc/DaliDS</jta-data_source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
| <property name="hiernate.hbm2dll.auto" value="update"/>
| </properties>
| </persistence-unit>
| </persistence>
But this doesn't seem to work, which I am assuming is because the datasource is not being bound.
here is my dali-ds.xml file
| <datasources>
| <local-tx-datasource>
| <jndi-name>DaliDS</jndi-name>
| <connection-url>jdbc:derby://localhost:1527/sample;create=true</connection-url>
| <driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
| <user-name>dali</user-name>
| <password>dali</password>
| </local-tx-datasource>
| </datasources>
|
What could be causing this ds.xml file not to be read?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141731#4141731
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141731
More information about the jboss-user
mailing list