I am working on using Idempotency within ActiveMQ Classic using Apache 
Cassandra as my in-memory store

I have the following jar files that are loaded with ActiveMQ:

camel-cassandraql-4.10.4.jar
cassandra-driver-core-3.10.0.jar
java-driver-core-4.17.0.jar
java-driver-shaded.guava-25.1-jre-graal-sub-1.jar
native-protocol-1.5.1.jar

Using documentation and information on the following Spring sites I believe I 
have been able to understand some of the components that need to be loaded in 
the Spring XML file.

https://docs.spring.io/spring-data/cassandra/docs/1.0.2.RELEASE/reference/html/cassandra.core.html

https://docs.spring.io/spring-data/cassandra/reference/cassandra/configuration.html

Here are some of the options that are listed for the XML configuration settings:

Link 1
<context:property-placeholder location="classpath:cassandra.properties" />
<cassandra:cluster contact-points="${cassandra.contactpoints}" 
port="${cassandra.port}" />
<cassandra:session keyspace-name="${cassandra.keyspace}" />
<cassandra:mapping />
<cassandra:converter />
<cassandra:template id="cassandraTemplate" />
<cassandra:repositories base-package="org.spring.cassandra.example.repo" />

Link 2
<cassandra:session contact-points="localhost" port="9042">
<cassandra:keyspace action="CREATE_DROP" name="mykeyspace" />
</cassandra:session>

<cassandra:session-factory>
<cassandra:script 
location="classpath:/org/springframework/data/cassandra/config/schema.cql"/>
</cassandra:session-factory>

Here is what I currently have in my XML file and everything loads fine.


<beans

   xmlns=http://www.springframework.org/schema/beans

   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

   xmlns:cassandra=http://www.springframework.org/schema/data/cassandra

   xmlns:context=http://www.springframework.org/schema/context

   xsi:schemaLocation=http://www.springframework.org/schema/data/cassandra 
http://www.springframework.org/schema/data/cassandra/spring-cql.xsd 
http://www.springframework.org/schema/data/cassandra 
http://www.springframework.org/schema/data/cassandra/spring-cassandra.xsd 
http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd 
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd 
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context.xsd<http://www.springframework.org/schema/data/cassandra%20http:/www.springframework.org/schema/data/cassandra/spring-cql.xsd%20http:/www.springframework.org/schema/data/cassandra%20http:/www.springframework.org/schema/data/cassandra/spring-cassandra.xsd%20http:/camel.apache.org/schema/spring%20http:/camel.apache.org/schema/spring/camel-spring.xsd%20http:/www.springframework.org/schema/beans%20http:/www.springframework.org/schema/beans/spring-beans.xsd%20http:/www.springframework.org/schema/context%20http:/www.springframework.org/schema/context/spring-context.xsd>>

</beans>


As soon as I begin adding any of the the Cassandra confiuration settings listed 
under the XML Configuration settings in either link I receive one of the 
following errors in my log file that states the following:


WARN  | DTD/XSD XML entity 
[http://www.springframework.org/schema/data/cassandra/spring-cql.xsd] not 
found, falling back to remote https resolution | 
org.springframework.beans.factory.xml.ResourceEntityResolver | main


WARN  | DTD/XSD XML entity 
[http://www.springframework.org/schema/data/cassandra/spring-cassandra.xsd] not 
found, falling back to remote https resolution | 
org.springframework.beans.factory.xml.ResourceEntityResolver | main


Does anyone have an idea what I may be missing or doing incorrectly?


In addition can anyone provide a link to the available setter methods/options 
that are available for Cassandra when using Spring XML?



Jason

Reply via email to