Thanks, Evgenii.

A minor addition, the content needs to be CDATA, as the value element is of 
string type and does not allow nested content.

    <bean id="fabricCachePersistenceSettings" 
class="org.apache.ignite.cache.store.cassandra.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="java.lang.String">
            <value><![CDATA[
                <persistence keyspace="test_11" table="fabric">
                    <keyPersistence class="java.util.UUID" strategy="PRIMITIVE" 
column="id"/>
                    <valuePersistence 
class="com.brocade.poc.icpoc.model.Fabric" strategy="POJO">
                        <field name="id"/>
                        <field name="name"/>
                        <field name="wwn"/>
                    </valuePersistence>
                </persistence>
            ]]></value>
        </constructor-arg>
    </bean>

Roger

-----Original Message-----
From: ezhuravlev [mailto:[email protected]] 
Sent: Thursday, July 13, 2017 9:52 AM
To: [email protected]
Subject: Re: Provide persistence settings inline for Cassandra 
KeyValuePersistenceSettings?

Hi,

It's possible to provide settings with String:

<bean id="primitive_csndra_cache"
class="org.apache.ignite.cache.store.cassandra.persistence.KeyValuePersistenceSettings">
        <constructor-arg type="java.lang.String">
            <value>
            </value>
        </constructor-arg>
</bean>

Evgenii



--
View this message in context: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__apache-2Dignite-2Dusers.70518.x6.nabble.com_Provide-2Dpersistence-2Dsettings-2Dinline-2Dfor-2DCassandra-2DKeyValuePersistenceSettings-2Dtp14724p14802.html&d=DwICAg&c=IL_XqQWOjubgfqINi2jTzg&r=1esZO0r0bYS90lcsaLA6N4AFxuNo6lzauhETGwdJQoQ&m=oFtkRV0l1GX-YlPjnUxPiIxl_HbLMhLdTALzbO-Sjc8&s=u0WEmBkbt-RMyLk-ca_nYzff1H91EdDQt3RG_BrXE6g&e=
 
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to