From 949ca612d499a094e2bc78d3f6801a1d1765cfed Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 2 Aug 2013 12:36:06 +0100 Subject: [PATCH] Moved persistence.xml and testrealm.json for example from webapp/META-INF to resources/META-INF - and changed persistence.xml to use a datasource --- .../{webapp => resources}/META-INF/persistence.xml | 10 +++------- .../main/{webapp => resources}/META-INF/testrealm.json | 0 2 files changed, 3 insertions(+), 7 deletions(-) rename examples/as7-eap-demo/server/src/main/{webapp => resources}/META-INF/persistence.xml (84%) rename examples/as7-eap-demo/server/src/main/{webapp => resources}/META-INF/testrealm.json (100%) diff --git a/examples/as7-eap-demo/server/src/main/webapp/META-INF/persistence.xml b/examples/as7-eap-demo/server/src/main/resources/META-INF/persistence.xml similarity index 84% rename from examples/as7-eap-demo/server/src/main/webapp/META-INF/persistence.xml rename to examples/as7-eap-demo/server/src/main/resources/META-INF/persistence.xml index 2e71f3fb4d..e0dc722aba 100755 --- a/examples/as7-eap-demo/server/src/main/webapp/META-INF/persistence.xml +++ b/examples/as7-eap-demo/server/src/main/resources/META-INF/persistence.xml @@ -3,8 +3,8 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> - org.hibernate.ejb.HibernatePersistence - + java:jboss/datasources/ExampleDS + org.picketlink.idm.jpa.model.sample.simple.AttributedTypeEntity org.picketlink.idm.jpa.model.sample.simple.AccountTypeEntity org.picketlink.idm.jpa.model.sample.simple.RoleTypeEntity @@ -22,12 +22,8 @@ org.keycloak.services.models.picketlink.mappings.ResourceEntity true - + - - - - diff --git a/examples/as7-eap-demo/server/src/main/webapp/META-INF/testrealm.json b/examples/as7-eap-demo/server/src/main/resources/META-INF/testrealm.json similarity index 100% rename from examples/as7-eap-demo/server/src/main/webapp/META-INF/testrealm.json rename to examples/as7-eap-demo/server/src/main/resources/META-INF/testrealm.json