xml - ActiveMQ Data persistent Issue in Java Spring -


i have application uses embedded activemq 5.11. @ start of application creates activemq-data\producerbroker\kahadb folder @ class path location. want change location spring.xml doesn't take location.

spring.xml given,

<bean id="producerbroker" class="org.apache.activemq.broker.sslbrokerservice">     <property name="brokername" value="producerbroker" />     <property name="persistent" value="true" />      <property name="persistenceadapter" ref="persistenceadapter"/>     <property name="transportconnectors">         <list>             <bean class="org.apache.activemq.broker.transportconnector">                 <property name="name" value="xxx"></property>                 <property name="uri" value="${transportconnectoruris}"></property>             </bean>         </list>     </property>     <property name="jmsbridgeconnectors">         <list>             <bean class="org.apache.activemq.network.jms.jmsqueueconnector">                 <property name="outboundqueueconnectionfactory">                     <bean class="org.apache.activemq.activemqsslconnectionfactory">                         <property name="brokerurl" value="${brokerurl}" />                         <property name="username" value="${username}" />                         <property name="password" value="${password}" />                         <property name="truststore" value="${trust.store.path}" />                         <property name="truststorepassword" value="${trust.store.password}" />                         <!-- <property name="keystore" value="${key.store.path}"/> -->                         <!-- <property name="keystorepassword" value="${key.store.password}"/> -->                     </bean>                 </property>                 <property name="outboundqueuebridges">                     <list>                         <bean class="org.apache.activemq.network.jms.outboundqueuebridge">                             <constructor-arg value="${screenshotqueuename}" />                         </bean>                         <bean class="org.apache.activemq.network.jms.outboundqueuebridge">                             <constructor-arg value="${resultxmlqueuename}" />                         </bean>                     </list>                 </property>              </bean>         </list>     </property> </bean>   <bean id="persistenceadapter" class="org.apache.activemq.store.kahadaptor.kahapersistenceadapter"> <property name="directory" value="e:\test"/> 

current issue throws error "exception org.springframework.beans.factory.cannotloadbeanclassexception: cannot find class [org.apache.activemq.store.kahadaptor.kahapersistencea apter] bean name 'kahapersistenceadapter' defined in class path resource [spring/resultupload/resultupload.xml]; nested exception java.la g.classnotfoundexception: org.apache.activemq.store.kahadaptor.kahapersistenceadapter"

anyone has experience in directory change in activemq 5.11 in java spring?

the destination of persistence location must defined @ broker level.

the kahapersistenceadapter (which file based) removed version 5.9. should use kahadb.

kahadb - uses kahadb embedded lightweight non-relational database

<broker brokername="broker" persistent="true" useshutdownhook="false">    <transportconnectors>      <transportconnector uri="tcp://localhost:61616"/>    </transportconnectors>    <persistenceadapter>      <kahadb directory="e:/temp" ... />    </persistenceadapter>  </broker> 

all valid attributes: http://activemq.apache.org/schema/core/activemq-core-5.11.0-schema.html#kahadb


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -