Hi,
   I configured as follows

        <amq:persistenceAdapter>
           <!--<amq:journaledJDBC journalLogFiles="5"
dataDirectory="./data/amq"/> -->
           <!-- To use a different datasource, use th following syntax : -->
           <amq:journaledJDBC journalLogFiles="5" dataDirectory="../data"
dataSource="#mysql-ds"/> 
    </amq:persistenceAdapter>


  <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="url"
value="jdbc:mysql://localhost:3306/test?relaxAutocCommit=true"/>
    <property name="username" value="xxx"/>
    <property name="password" value="yyy"/>
    <property name="poolPreparedStatements" value="true"/>
  </bean>


Also i changed the following in servicemix.bat

-Dderby.storage.fileSyncTransactionLog=false



bsnyder wrote:
> 
> On 6/12/07, Arif Mohd <[EMAIL PROTECTED]> wrote:
>>
>> Hi bsnyder,
>>
>>      My requirement is as follows
>>           - Bulk messages of size approximately 1MB will be stored in
>> durable topic.
>>           - clients will read this messages by using message selectors.
>>      so, in the above scenario if i use mySQL for persitence storage of
>> messages and activeMQ 5.0 then i can take advantage of spooling.
> 
> You can't easily change the version of ActiveMQ in ServiceMix because
> ServiceMix is compiled against ActiveMQ and I know that the trunk
> version of ActiveMQ contains a lot of changes.
> 
>>       so, the message for a particular client will be loaded into heap
>> from
>> DB and will be dispatched to the client when the client tries to read the
>> message.
>>       Is my understanding correct?
> 
> To my knowledge, in ActiveMQ 4.1 when persistence is used, some
> messages are still held in memory, but I'm not sure exactly how that's
> determined. You'd be better off asking these very ActiveMQ-specific
> questions about the internals on the ActiveMQ users list.
> 
>>      - At some point of time iam getting the following error on
>> servicemix
>> console when iam using mySQL 5.0 as persitence storage.
> ...
>> ERROR - JournalPersistenceAdapter      - Failed to mark the Journal:
>> org.apache.activeio.journal.InvalidRecordLocationException: The location
>> is
>> less than the last mark.
>>
>> org.apache.activeio.journal.InvalidRecordLocationException: The location
>> is
>> less than the last mark.
> 
> This looks like there might be an issue with the persistence
> configuration for ActiveMQ. Please post the XML you're using to
> configure the persistence in ActiveMQ.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/servicemix-Hanging-tf3899807s12049.html#a11114043
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to