Can you clarify your use-case? Are you attempting to use Apache Cassandra as the storage mechanism for ActiveMQ Classic? If so, you'll need to implement a Cassandra-based persistence adapter since it doesn't provide a JDBC driver or other means of integration. It's possible such an adapter already exists, but the best information I could find [1] references a defunct project [2] that hasn't been updated in 15 years.
If you're simply trying to start an instance of Cassandra via Spring and use it from your application along with ActiveMQ Classic I think the Cassandra community would be a better resource for you. I don't see anything directly related to ActiveMQ in your question. Justin [1] https://stackoverflow.com/questions/4978730/apache-cassandra-as-a-message-data-store-for-activemq [2] https://github.com/ticktock/qsandra On Tue, May 27, 2025 at 9:56 AM Jason Jackson <jason.jack...@itechag.com.invalid> wrote: > I am working on using Idempotency within ActiveMQ Classic using Apache > Cassandra as my DB. > > 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? > > > Jason >