You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Alex Negashev (JIRA)" <ji...@apache.org> on 2017/08/10 12:50:00 UTC

[jira] [Created] (IGNITE-6026) init cluster for Ignite Ignite Persistence by xml

Alex Negashev created IGNITE-6026:
-------------------------------------

             Summary: init cluster for Ignite  Ignite Persistence by xml 
                 Key: IGNITE-6026
                 URL: https://issues.apache.org/jira/browse/IGNITE-6026
             Project: Ignite
          Issue Type: Wish
          Components: cache, examples, persistence
    Affects Versions: 2.1
         Environment: ignite in docker with zk
            Reporter: Alex Negashev


Hello! We use Ignite 2.1 and would like to use Ignite Persistence, how i can do this with out java code? xml only.
Example attached.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Re: [jira] [Created] (IGNITE-6026) init cluster for Ignite Ignite Persistence by xml

Posted by Alexey Kukushkin <al...@yahoo.com.INVALID>.
Hi Alex,
The main idea from the API perspective is that Ignite Persistence is transparent for the API. After you enable persistence all your APIs including get/put, SQL, etc would work as before. 
Enable Persistence with 1 line:
<property name="persistentStoreConfiguration">
    <bean class="org.apache.ignite.configuration.PersistentStoreConfiguration"/>
</property>

And then activate cluster explicitly - With script:
${IGNITE_HOME}/bin/control.sh --activate

OR in the code:
ignite.active(true);


Best regards, Alexey


On Thursday, August 10, 2017, 3:50:35 PM GMT+3, Alex Negashev (JIRA) <ji...@apache.org> wrote:

Alex Negashev created IGNITE-6026:
-------------------------------------

            Summary: init cluster for Ignite  Ignite Persistence by xml 
                Key: IGNITE-6026
                URL: https://issues.apache.org/jira/browse/IGNITE-6026
            Project: Ignite
          Issue Type: Wish
          Components: cache, examples, persistence
    Affects Versions: 2.1
        Environment: ignite in docker with zk
            Reporter: Alex Negashev


Hello! We use Ignite 2.1 and would like to use Ignite Persistence, how i can do this with out java code? xml only.
Example attached.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)