<div dir="ltr">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. </div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 4:56 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've tested this now and it seems to work fine.<br>
<br>
To use a different datasource to KeycloakDS you just need to change it in:<br>
<br>
standalone/configuration/keycloak-server.json<br>
<br>
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:<br>
<br>
<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS" ...<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
> From: "Stian Thorgersen" <<a href="mailto:stian@redhat.com">stian@redhat.com</a>><br>
> To: "Dean Peterson" <<a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a>><br>
> Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Tuesday, 26 August, 2014 11:36:16 AM<br>
> Subject: Re: [keycloak-user] I have tried everything<br>
><br>
> You should not need the ExampleDS and you should also be able to change the<br>
> name of the datasource by editing keycloak-server.json.<br>
><br>
> I'll look into this. Are you deploying to AS7 or WildFly? How are you<br>
> deploying (war-dist, appliance-dist, or building your own war?).<br>
><br>
> ----- Original Message -----<br>
> > From: "Dean Peterson" <<a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a>><br>
> > To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> > Sent: Sunday, 17 August, 2014 2:05:53 AM<br>
> > Subject: Re: [keycloak-user] I have tried everything<br>
> ><br>
> > Ok, I figured it out. I just replaced java:jboss/datasources/KeycloakDS<br>
> > with<br>
> > my own settings rather than create a new jndi datasource with a different<br>
> > name. In the past I was able to change the jndi name to<br>
> > java:jboss/datasources/ui_users and make a few updates to persistence.xml.<br>
> > The new way is arguably easier. Now that I know to just replace KeycloakDS<br>
> > with my own settings I do not need to change anything else. Am I correct in<br>
> > assuming this is how things work going forward? It seems I cannot delete<br>
> > ExampleDS either without causing problems though. The current documentation<br>
> > is also misleading.<br>
> ><br>
> > _______________________________________________<br>
> > keycloak-user mailing list<br>
> > <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
</div></div></blockquote></div><br></div>