activemq - How We can Store JMS Persistence in DIsk Using Wso2 -


i using wso2esb 4.7.0 , activemq or wso2message borker 2.1.0

<proxy xmlns="http://ws.apache.org/ns/synapse" name="message" transports="https,http" statistics="disable" trace="disable" startonload="true">    <target>       <insequence>          <log level="full"/>          <property name="faisal" value="faisal" scope="default" type="string"/>          <property name="target.endpoint" value="jmschecking" scope="default" type="string"/>          <store messagestore="faisal5"/>       </insequence>       <outsequence>          <log level="full"/>       </outsequence>    </target>    <description></description> </proxy 

i wish store messages in system disk how can provide manual store message stor

e active mq or mwso2 message broker     <messagestore name="faisal5" class="org.wso2.carbon.message.store.persistence.jms.jmsmessagestore" xmlns="http://ws.apache.org/ns/synapse">        <parameter name="java.naming.factory.initial">org.apache.activemq.jndi.activemqinitialcontextfactory</parameter>        <parameter name="java.naming.provider.url">tcp://localhost:61616</parameter>        <parameter name="store.jms.destination">faisal5_queue</parameter>        <parameter name="store.jms.jmsspecversion">1.1</parameter>        <parameter name="store.jms.cache.connection">false</parameter>     </messagestore> 

and message process config possible store failure messages system disk .if server crashes data lost how can achieve it

did try enabling persistence in activemq? version of activemq use? looked in activemq 5.8 , uses kahadb file based db default persistence configuration. persistence approach can changed based on requirement.

to enable persistance;

1) go file [activemq_home] --> conf --> activemq.xml

2) check if below configurations enabled broker;

<broker xmlns="http://activemq.apache.org/schema/core" brokername="localhost" persistent="true" datadirectory="${activemq.data}">     <persistenceadapter>         <kahadb directory="${activemq.data}/kahadb"/>     </persistenceadapter> 

  • within broker tag, attribute set persistent="true".
  • configurations pointing kahadb.

the default kahadb files can found under below location;

[activemq_home]/data/kahadb/

check if satisfies requirement. more information, please refer activemq persistence. latter part contains kahadb persistence configurations.

btw in activemq console, refered "messages enqueued" count since last reset. set 0 whenever restart server. actual available message count shown count under "number of pending messages".

i haven't tried wso2 mb. try sometime , keep posted.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -