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

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

    [ https://issues.apache.org/jira/browse/IGNITE-6026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121582#comment-16121582 ] 

Alexey Kukushkin commented on IGNITE-6026:
------------------------------------------

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


> init cluster for 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
>              Labels: documentation
>
> Hello! We use Ignite 2.1 and would like to use Ignite Persistence, how i can do this without java code? xml only.
> Example attached.



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