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

	<!-- Change 4 following directory locations in order to match 
	correct hornetq directories of current server host. Must have
	WRX rights for tomcat user because hornetq need previous rights
	to create, modify, delete ... many files which manage into these
	directories -->
   <paging-directory>paging</paging-directory>
   
   <bindings-directory>bindings</bindings-directory>
   
   <journal-directory>journal</journal-directory>
   
   <large-messages-directory>large-messages</large-messages-directory>
   
   <journal-min-files>10</journal-min-files>
   
      <connectors>
   <!-- Not used at the moment
      <connector name="netty">
         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
         <param key="host"  value="localhost"/>
         <param key="port"  value="5445"/>
      </connector>
    -->
    <!-- Don't modify "edeal-connector" connector name 
		 but change port if you have several E-DEAL applications
		 deployed in this localhost
	-->
	<!-- InVMConnector -->
      <connector name="edeal-connector">
        <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
         <param key="server-id" value="${hornetq.server-id:0}"/>
      </connector>
      
      <!--
      TCP/IP Connector
      <connector name="edeal-connector">
        <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
         <param key="host"  value="localhost"/>
         <param key="port"  value="5455"/>
         <param key="batch-delay" value="50"/>
      </connector>
      -->
   </connectors>

   <acceptors>
   <!-- Not used at the moment
      <acceptor name="netty">
         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
         <param key="host"  value="localhost"/>
         <param key="port"  value="5445"/>
      </acceptor>
    -->  
    	<!-- Don't modify "edeal-acceptor" acceptor name 
		 but change port if you have several E-DEAL applications
		 deployed in this localhost
	-->
      <acceptor name="edeal-acceptor">
         <factory-class>
               org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory
           </factory-class>
           <param key="server-id" value="0"/>
      </acceptor>
      
      <!-- TCP/IP Acceptor -->
      <!--
      <acceptor name="edeal-acceptor">
         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
         <param key="host"  value="localhost"/>
         <param key="port"  value="5455"/>
         <param key="batch-delay" value="50"/>
         <param key="direct-deliver" value="false"/>
      </acceptor>
      -->
   </acceptors>

   <security-enabled>false</security-enabled>
   
   <persistence-enabled>false</persistence-enabled>
   
   <shared-store>false</shared-store>
   
   <address-settings>
      <!--default for catch all-->
      <address-setting match="#">
         <dead-letter-address>jms.queue.DLQ</dead-letter-address>
         <expiry-address>jms.queue.ExpiryQueue</expiry-address>
         <redelivery-delay>0</redelivery-delay>
         <max-size-bytes>10485760</max-size-bytes>       
         <message-counter-history-day-limit>10</message-counter-history-day-limit>
         <address-full-policy>BLOCK</address-full-policy>
      </address-setting>
   </address-settings>
</configuration>