Mohit,
Thanks for helping me!
Here are the params I set after going through several forum threads where
their messages were stuck.

Pramod
-------------------
<beans
  xmlns="http://www.springframework.org/schema/beans";
  xmlns:amq="http://activemq.apache.org/schema/core";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd";>

    
    <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <value>file:${activemq.conf}/credentials.properties</value>
        </property>
    </bean>
        <bean id="oracle-ds"
               class="org.apache.commons.dbcp.BasicDataSource"
               destroy-method="close">
               <property name="driverClassName">
                         <value>oracle.jdbc.driver.OracleDriver</value>
               </property>
               <property name="url">
                         <value>jdbc:oracle:thin:@esn-mgr:1521:xyzdb</value>
               </property>
               <property name="username">
                         <value>xyz</value>
               </property>
               <property name="password">
                         <value>xyz</value>
               </property>
               <property name="maxActive">
                         <value>100</value>
               </property>
               <property name="poolPreparedStatements">
                         <value>true</value>
               </property>
         </bean>

    
    <broker xmlns="http://activemq.apache.org/schema/core";
brokerName="localhost" dataDirectory="${activemq.data}">

        

        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true">
                    
                  <pendingMessageLimitStrategy>
                    <constantPendingMessageLimitStrategy limit="1000"/>
                  </pendingMessageLimitStrategy>
                </policyEntry>
              
                <policyEntry queue=">" producerFlowControl="false" 
memoryLimit="8mb"
useCache="false">
                  
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy>

        <persistenceAdapter>
                 <jdbcPersistenceAdapter dataSource="#oracle-ds" />
        </persistenceAdapter>

        <plugins>
        <loggingBrokerPlugin logAll="true" logConnectionEvents="false"/>
        </plugins>


        
        <managementContext>
            <managementContext createConnector="false"/>
        </managementContext>

      

           <systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage limit="64 mb"/>
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="100 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="50 gb"/>
                </tempUsage>
            </systemUsage>
        </systemUsage>

        
<transportConnectors>
            
            <transportConnector name="openwire"
uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600&amp;jms.prefetchPolicy.queuePrefetch=0"/>
            <transportConnector name="amqp"
uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
        </transportConnectors>

        
        <shutdownHooks>
            <bean xmlns="http://www.springframework.org/schema/beans";
class="org.apache.activemq.hooks.SpringContextHook" />
        </shutdownHooks>

    </broker>

    
    <import resource="jetty.xml"/>

</beans>





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Messages-stuck-in-pending-state-in-queue-tp4669239p4669248.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to