Hi Romain

sorry for may ignorance, but the jms.prefetchPolicy.all=0 goes like this?

        <Resource id="Default JMS Resource Adapter" 
type="ActiveMQResourceAdapter">
                BrokerXmlConfig =
broker:(tcp://localhost:61616)?persistent=true&jms.prefetchPolicy.all=0
                ServerUrl = tcp://localhost:61616
                DataSource = MyJmsDataSource
                maximumRedeliveries = -1
        </Resource>

or is it defined at application.properties like

jms.prefetchPolicy.all=0

?

[]

Leo


On Fri, Aug 2, 2013 at 2:05 AM, Romain Manni-Bucau
<[email protected]> wrote:
> Hi
>
> Did you try http://activemq.apache.org/what-is-the-prefetch-limit-for.html ?
> Le 2 août 2013 06:32, "Leonardo K. Shikida" <[email protected]> a écrit :
>
>> Hi
>>
>> page http://tomee.apache.org/jms-resources-and-mdb-container.html
>>
>> seems to be inaccurate
>>
>> it says
>>
>> "Adding the DataSource property to your ActiveMQResourceAdapter config
>> will automatically setup JDBC Persistence using the
>> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter"
>>
>> but the example does not use the "?persistent=true"
>>
>> in my app, if I omit this parameter, tomee simply behaves as the
>> messages are in memory.
>>
>> if I add the parameter
>>
>>         <Resource id="Default JMS Resource Adapter"
>> type="ActiveMQResourceAdapter">
>>                 BrokerXmlConfig =
>> broker:(tcp://localhost:61616)?persistent=true
>>                 ServerUrl = tcp://localhost:61616
>>                 DataSource = MyJmsDataSource
>>         </Resource>
>>
>> then it retrieves all the messages that are persisted
>>
>> BTW, how exactly should I set tomee to disable activemq prefetch? (all of
>> them)
>>
>> Please provide an example in a file (tomee.xml,
>> application.properties, whatever), not in the java code.
>>
>> TIA
>>
>> Leo
>>

Reply via email to