diff --git a/li.strolch.website/www.strolch.li/api.html b/li.strolch.website/www.strolch.li/api.html index be1414ba5..467588489 100644 --- a/li.strolch.website/www.strolch.li/api.html +++ b/li.strolch.website/www.strolch.li/api.html @@ -210,10 +210,6 @@ try (StrolchTransaction tx = openTx(realmName)) {

In this mode, all data is stored in memory, and any changes made are written back to the persistence layer. This allows for fast in-memory quries, but makes sure no data is lost when the agent is restarted.

-
  • TRANSACTIONAL -

    In this mode no data is kept in memory and every query, and root element retrieval is passed to the - persistence layer to be retrieved from the underlying database. This is what comes closest to a - typical Java+Hibernate implementation.

  • Strolch Realms are also responsible for opening Transactions, as these are bound to the persistence layer @@ -404,8 +400,7 @@ public class SetParameterCommand extends Command {

  • Configure and maintain the realms, which implement the multi-client capability
  • Provide a default ServiceHandler to perform Services at runtime
  • -
  • Implements the realms which each can operate in different modes data store modes: TRANSACTIONAL, - CACHED, TRANSIENT +
  • Implements the realms which each can operate in different modes data store modes: CACHED, TRANSIENT
  • @@ -425,12 +420,12 @@ public class SetParameterCommand extends Command {
  • li.strolch.persistence.postgresql

    Implements a PostgreSQL persistence layer so that the Strolch model can be persisted to a PostgreSQL - RDBMS when the realm is configured to have a data store mode of either CACHED or TRANSACTIONAL

    + RDBMS when the realm is configured to have a data store mode of CACHED.

  • li.strolch.persistence.xml

    Implements an XML persistence layer so that the Strolch model can be persisted to XML files when the - realm is configured to have a data store mode of either CACHED or TRANSACTIONAL.

    + realm is configured to have a data store mode of CACHED.

  • li.strolch.rest diff --git a/li.strolch.website/www.strolch.li/documentation-realms.html b/li.strolch.website/www.strolch.li/documentation-realms.html index bbb96c431..89cf6e107 100644 --- a/li.strolch.website/www.strolch.li/documentation-realms.html +++ b/li.strolch.website/www.strolch.li/documentation-realms.html @@ -68,10 +68,6 @@ persistence layer. This allows for fast in-memory qeuries, but makes sure no data is lost when the agent is restarted.
  • -
  • TRANSACTIONAL
    In this mode no data is kept in-memory and every query, and element retrieval is - passed to the persistence layer to be retrieved from the underlying database. This is similar to typical - Java applications where JPA is used. -
  • Realms are mostly hidden from a developer as a StrolchTransaction exposes all important @@ -79,7 +75,7 @@ specific project. If the project only requires one realm, then the defaultRealm can be used, where the developer only is required to configure the mode and any relevant model file.

    -

    If the mode is CACHED or TRANSACTIONAL, then the PersistenceHandler component is required to be +

    If the mode is CACHED, then the PersistenceHandler component is required to be configured, so that the DAOs know how to access the underlying database.

    The configuration in the StrolchConfiguration.xml file is as follows:

    @@ -93,10 +89,10 @@ <api>li.strolch.agent.api.RealmHandler</api> <impl>li.strolch.agent.impl.DefaultRealmHandler</impl> <depends>PrivilegeHandler</depends> - <!-- if CACHED or TRANSACTIONAL: --> + <!-- if CACHED: --> <!--depends>PersistenceHandler</depends--> <Properties> - <dataStoreMode>EMPTY|TRANSIENT|CACHED|TRANSACTIONAL</dataStoreMode> + <dataStoreMode>EMPTY|TRANSIENT|CACHED</dataStoreMode> <dataStoreFile>StrolchModel.xml</dataStoreFile> </Properties> </Component> @@ -120,10 +116,9 @@ <depends>PrivilegeHandler</depends> <depends>PersistenceHandler</depends> <Properties> - <realms>defaultRealm, cachedRealm, transactionalRealm</realms> + <realms>defaultRealm, cachedRealm</realms> <dataStoreMode>TRANSIENT</dataStoreMode> <dataStoreFile>DefaultRealm.xml</dataStoreFile> - <dataStoreMode.transactionalRealm>TRANSACTIONAL</dataStoreMode.transactionalRealm> <dataStoreMode.cachedRealm>CACHED</dataStoreMode.cachedRealm> <dataStoreMode.emptyRealm>EMPTY</dataStoreMode.emptyRealm> </Properties> @@ -137,11 +132,6 @@ <allowSchemaCreation>true</allowSchemaCreation> <allowSchemaDrop>true</allowSchemaDrop> - <db.url.transactionalRealm>jdbc:postgresql://localhost/testdb1</db.url.transactionalRealm> - <db.username.transactionalRealm>testuser1</db.username.transactionalRealm> - <db.password.transactionalRealm>test</db.password.transactionalRealm> - <db.pool.maximumPoolSize.transactionalRealm>1</db.pool.maximumPoolSize.transactionalRealm> - <db.url.cachedRealm>jdbc:postgresql://localhost/testdb2</db.url.cachedRealm> <db.username.cachedRealm>testuser2</db.username.cachedRealm> <db.password.cachedRealm>test</db.password.cachedRealm>