Hi Dejan ,
Thanks for the reply. 
I have already tried that (persistent = "true" ) yesterday , but got the
below error.
 Error creating bean with name 'broker' defined in ServletContext resource
Invocation of init method failed; nested exception is
java.lang.NoClassDefFoundError: org/apache/derby/jdbc/EmbeddedDataSource
Caused by: 
java.lang.NoClassDefFoundError: org/apache/derby/jdbc/EmbeddedDataSource




Dejan Bosanac wrote:
> 
> Try setting persistent property to true.
> 
> Cheers
> --
> Dejan Bosanac
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 
> 
> On Mon, Mar 2, 2009 at 6:25 PM, venkat123 <raju...@gmail.com> wrote:
> 
>>
>> I am new to ActiveMQ and JMS.
>>
>> I need to use bean injection and configure ActiveMQ Broker .
>> The exiting configuration is working but it does not have persistence
>> mechanism set-up.
>>
>>
>> Can some please guide me , how to set the configuration parameters to
>> have
>> the messages persisted in a journal.
>>
>> I am using spring2.5 , ACTIVEMQ4.1 .
>> the current configuration for broker is as follows:
>> <bean id="broker" class="org.apache.activemq.broker.BrokerService"
>> init-method="start" destroy-method="stop">
>>
>> <property name="persistent" value="false"/>
>>
>> <property name="useJmx" value="false"/>
>>
>> <property name="deleteAllMessagesOnStartup" value="true"/>
>>
>> <property name="useShutdownHook" value="true"/>
>>
>> <property name="transportConnectorURIs">
>>
>> <list>
>>
>> <value>tcp://${jms.hostName}:${jms.portNumber}</value>
>>
>> </list>
>>
>> </property>
>>
>> </bean>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-Configure-ActiveMQ-With-Spring----tp22292510p22292510.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> Dejan Bosanac
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-Configure-ActiveMQ-With-Spring----tp22292510p22316973.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to