2 Replies Latest reply on Oct 30, 2012 6:50 AM by jacktrades

    @DataSourceDefinition, classname for Hibernate

    jacktrades Newbie

      Looking for the analogous of org.apache.derby.jdbc.EmbeddedDataSource.

       

      Looking forward to deploy this in example with Jboss AS 7:

      https://github.com/agoncal/agoncal-application-petstore-ee6/blob/master/src/main/java/org/agoncal/application/petstore/service/DBPopulator.java

       

      standalone.xml relevant part look like this:

       

      <datasources>

                      <datasource jndi-name="java:jboss/datasources/applicationPetstoreDS" pool-name="applicationPetstoreDS" enabled="true" use-java-context="true">

                          <connection-url>jdbc:postgresql://localhost:5432/applicationPetstoreDB</connection-url>

                          <driver>postgresql</driver>

                          <security>

                              <user-name>postgres</user-name>

                              <password>root</password>

                          </security>

                      </datasource>

                      <drivers>

                          <driver name="postgresql" module="org.postgresql">

                              <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>

                          </driver>

                      </drivers>

                  </datasources>