<div dir="ltr">I&#39;ll try it with the Mongo. I&#39;ll contact you if there is any trouble. please be with me until I catch the correct path to move through.<div>then I can keep going </div><div><br></div><div>thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 23, 2015 at 5:52 PM, Stan Silvert <span dir="ltr">&lt;<a href="mailto:ssilvert@redhat.com" target="_blank">ssilvert@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><span class="">
    <div>On 3/23/2015 3:27 AM, Marek Posolda
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div>Hi,<br>
        <br>
        the database is re-created after each start just if you&#39;re using
        in-memory H2 database. This is the case by default if you&#39;re
        using KeycloakServer from testsuite for development. You can
        change it to use either File-based H2 (this is used by
        keycloak-appliance distribution by default) or point to some
        other DB like MySQL for example. <br>
        <br>
        To change this, you just need to add few system properties when
        running server. See this file for details of what needs to be
        changed:
        <a href="https://github.com/keycloak/keycloak/blob/master/testsuite/integration/src/main/resources/META-INF/keycloak-server.json" target="_blank">https://github.com/keycloak/keycloak/blob/master/testsuite/integration/src/main/resources/META-INF/keycloak-server.json</a><br>
        <br>
        I am personally usually using mongo for development with
        KeycloakServer. Data are persistent among server restarts, so DB
        doesn&#39;t need to be initialized after restart and server startup
        usually takes about 2 seconds on my laptop.<br>
      </div>
    </blockquote></span>
    I&#39;m doing the same thing with the file persistence.  The file is
    written to the /target directory.  After a test, it should be about
    17K if it was cleaned up properly.  If not, you immediately know
    something went wrong with the test.<span class=""><br>
    <blockquote type="cite">
      <div> <br>
        Marek<br>
        <br>
        On 22.3.2015 14:27, Prakhash siva wrote:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Hi all,
          <div>I have a issue related to how the KC database works.
            According to my understanding it is a sqlite kind of
            database and whenever I run the server it get initiates. so
            when logging the events with the purpose of detecting
            intrusions is it 100% possible to use the inbuilt database
            of  KC.</div>
          <div><br>
          </div>
          <div>for example If I&#39;m going to maintain a history for a
            specific client to identify his activities it can&#39;t be
            locally tested. So its trivial that I need to change the
            database. So I need to get to know if I change the database
            to mongo will the same re initialization process will
            happen? and where I need to work for this</div>
          <div><br>
          </div>
          <div>Thanks </div>
          <div>
            <div><br>
            </div>
            -- <br>
            <div>
              <div dir="ltr"><i><b>Sivakumar Prakhash</b></i>
                <div><i><b>Undergraduate</b></i></div>
                <div><i><b>Computer Science &amp; Engineering</b></i></div>
                <div><i><b>University of Moratuwa.</b></i></div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
keycloak-dev mailing list
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
keycloak-dev mailing list
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
    </blockquote>
    <br>
  </span></div>

<br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><i><b>Sivakumar Prakhash</b></i><div><i><b>Undergraduate</b></i></div><div><i><b>Computer Science &amp; Engineering</b></i></div><div><i><b>University of Moratuwa.</b></i></div><div><br></div><div><br></div></div></div>
</div>