6 Replies Latest reply on Jul 9, 2010 3:57 AM by Cinto qq

    Can't find pages in the paging directory

    Cinto qq Newbie

      Hi,

       

      I have setup paging in my configuration, however the pages do not seems to store anywhere in the server.

       

      Here's my hornetq-configuration.xml:

       

      <configuration xmlns="urn:hornetq"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">

       

         <!-- Connectors -->
         <connectors>
            <connector name="netty-connector">
               <factory-class>org.hornetq.integration.transports.netty.NettyConnectorFactory</factory-class>        
               <param key="host"  value="${hornetq.remoting.netty.host:servername}"/>
               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
              </connector>
         </connectors>
        
         <paging-directory>/home/tomcat/messaging/hornetq-2.0.0.GA/data/page</paging-directory>
        
         <!-- Acceptors -->
         <acceptors>
            <acceptor name="netty-acceptor">
               <factory-class>org.hornetq.integration.transports.netty.NettyAcceptorFactory</factory-class>        
               <param key="host"  value="${hornetq.remoting.netty.host:servername}"/>
               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
              </acceptor>
         </acceptors>

       

         <!-- Other config -->

       

         <security-settings>
            <!--security for example queue-->

           
           <security-setting match="#">
               <permission type="createTempQueue" roles="guest"/>
               <permission type="deleteTempQueue" roles="guest"/>
               <permission type="consume" roles="guest"/>
               <permission type="send" roles="guest"/>
            </security-setting>

         </security-settings>

       

         <address-settings>
            <address-setting match="jms.queue.pagingQueue">
               <max-size-bytes>100000</max-size-bytes>
               <page-size-bytes>20000</page-size-bytes>
            </address-setting>         

       

            <address-setting match="jms.queue.exampleQueue">
                <max-size-bytes>100</max-size-bytes>
                <page-size-bytes>10</page-size-bytes>
                <address-full-policy>PAGE</address-full-policy>

            </address-setting>

       

            <address-setting match="#">
                <!--<max-size-bytes>10485760</max-size-bytes>-->
               <max-size-bytes>100</max-size-bytes>
               <!--<page-size-bytes>1048576</page-size-bytes>-->
               <page-size-bytes>10</page-size-bytes>
               <!--<address-full-policy>PAGE</address-full-policy>-->
            </address-setting>
         </address-settings>

       

      </configuration>

       

       

      I was sending 5000 messages to exampleQueue. I tried to look for the pages inside the paging-directory, but it was empty. I have checked the permission of the folder, and its writtable. There wasn't any error in the log files as well.

       

      Please let me know if my configuration is correct or where I can find the paging.

       

      Thanks.

       

       

      Cinto