Commits

Micha Kops committed e1c7446

Obsolete JNDI references to JBoss/WildFly datasources removed.

Comments (0)

Files changed (2)

src/main/java/com/hascode/tutorial/setup/InitializerBean.java

 	private static final String STAGE = "development";
 	private static final String CHANGELOG_FILE = "liquibase/db.changelog.xml";
 
-	@Resource(name = "jboss/datasources/ExampleDS")
+	@Resource
 	private DataSource ds;
 
 	@PostConstruct

src/main/resources/META-INF/persistence.xml

    xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="default">
-      <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
    </persistence-unit>
-</persistence>
+</persistence>