Hello,
all the examples for the Cassandra integration load the persistence settings
from a resource. Here is one such example:
Is it possible to define the persistence settings inline, ie. in the same file
as the cache configuration?
I tried the following:
But that resulted in the following error:
class org.apache.ignite.IgniteException: Failed to instantiate Spring XML
application context
[springUrl=file:/home/ignite/ignite/test-ignite-cassandra/config-server-cassandra.xml,
err=Line 48 in XML document from URL
[file:/home/ignite/ignite/test-ignite-cassandra/config-server-cassandra.xml] is
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 48;
columnNumber: 56; cvc-complex-type.2.4.a: Invalid content was found starting
with element 'persistence'. One of
'{"http://www.springframework.org/schema/beans":description,
"http://www.springframework.org/schema/beans":meta,
"http://www.springframework.org/schema/beans":constructor-arg,
"http://www.springframework.org/schema/beans":property,
"http://www.springframework.org/schema/beans":qualifier,
"http://www.springframework.org/schema/beans":lookup-method,
"http://www.springframework.org/schema/beans":replaced-method,
WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.]
I understand that in most cases it makes more sense to use a resource. But for
some basic ad-hoc testing it would be convenient to define everything in the
same file.
Roger