Ok, great!  I tried the appliance and I built my own.  I did remove it as a datasource definition and I modified the keycloak-server.json file but I must have missed removing the <default-bindings.....      That must not get removed when removing ExampleDS using the admin console.  I am surprised I didn't do a search for ExampleDS past datasources in standalone.xml to find the default-bindings section; that was silly.  Anyway, thanks for looking into it.  


On Thu, Aug 28, 2014 at 4:56 AM, Stian Thorgersen <stian@redhat.com> wrote:
I've tested this now and it seems to work fine.

To use a different datasource to KeycloakDS you just need to change it in:

  standalone/configuration/keycloak-server.json

To remove the ExampleDS datasource you need to remove the datasource definition from standalone.xml, and also remove (or change) the datasource attribute of default-bindings:

  <default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS" ...

----- Original Message -----
> From: "Stian Thorgersen" <stian@redhat.com>
> To: "Dean Peterson" <peterson.dean@gmail.com>
> Cc: keycloak-user@lists.jboss.org
> Sent: Tuesday, 26 August, 2014 11:36:16 AM
> Subject: Re: [keycloak-user] I have tried everything
>
> You should not need the ExampleDS and you should also be able to change the
> name of the datasource by editing keycloak-server.json.
>
> I'll look into this. Are you deploying to AS7 or WildFly? How are you
> deploying (war-dist, appliance-dist, or building your own war?).
>
> ----- Original Message -----
> > From: "Dean Peterson" <peterson.dean@gmail.com>
> > To: keycloak-user@lists.jboss.org
> > Sent: Sunday, 17 August, 2014 2:05:53 AM
> > Subject: Re: [keycloak-user] I have tried everything
> >
> > Ok, I figured it out. I just replaced java:jboss/datasources/KeycloakDS
> > with
> > my own settings rather than create a new jndi datasource with a different
> > name. In the past I was able to change the jndi name to
> > java:jboss/datasources/ui_users and make a few updates to persistence.xml.
> > The new way is arguably easier. Now that I know to just replace KeycloakDS
> > with my own settings I do not need to change anything else. Am I correct in
> > assuming this is how things work going forward? It seems I cannot delete
> > ExampleDS either without causing problems though. The current documentation
> > is also misleading.
> >
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> _______________________________________________
> keycloak-user mailing list
> keycloak-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>