<?xml version="1.0"?>
<!--
  - Copyright (C) 2000 - 2012 ScalAgent Distributed Technologies
  - 
  - This library is free software; you can redistribute it and/or
  - modify it under the terms of the GNU Lesser General Public
  - License as published by the Free Software Foundation; either
  - version 2.1 of the License, or any later version.
  - 
  - This library is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  - Lesser General Public License for more details.
  - 
  - You should have received a copy of the GNU Lesser General Public
  - License along with this library; if not, write to the Free Software
  - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  - USA.
-->

<JoramAdmin>
  <TcpAdminModule host="localhost" port="16010" name="root" password="root">
    <property name="connectingTimer" value="60"/>
  </TcpAdminModule>

  <InitialContext>
    <property name="java.naming.factory.initial" value="fr.dyade.aaa.jndi2.client.NamingContextFactory"/>
	<property name="java.naming.factory.host" value="localhost" />
	<property name="java.naming.factory.port" value="16400" />
  </InitialContext>

  <TcpConnectionFactory name="cf0" host="localhost" port="16010">
    <jndi name="cf0"/>
  </TcpConnectionFactory>

  <TcpConnectionFactory name="cf1" host="localhost" port="16011">
    <jndi name="cf1"/>
  </TcpConnectionFactory>

  <TcpConnectionFactory name="cf2" host="localhost" port="16012">
    <jndi name="cf2"/>
  </TcpConnectionFactory>

  <User name="user0" login="anonymous" password="anonymous" serverId="0"/>
  <User name="user1" login="anonymous" password="anonymous" serverId="1"/>
  <User name="user2" login="anonymous" password="anonymous" serverId="2"/>

	<Queue name="queue0" serverId="0"
		className="org.objectweb.joram.mom.dest.ClusterQueue">
		<freeReader />
		<freeWriter />
		<property name="period" value="100" />
		<property name="producThreshold" value="25" />
		<property name="consumThreshold" value="2" />
		<property name="autoEvalThreshold" value="true" />
		<property name="waitAfterClusterReq" value="100" />
		<jndi name="queue0" />
	</Queue>

	<Queue name="queue1" serverId="1"
		className="org.objectweb.joram.mom.dest.ClusterQueue">
		<freeReader />
		<freeWriter />
		<property name="period" value="100" />
		<property name="producThreshold" value="25" />
		<property name="consumThreshold" value="2" />
		<property name="autoEvalThreshold" value="true" />
		<property name="waitAfterClusterReq" value="100" />
		<jndi name="queue1" />
	</Queue>

	<Queue name="queue2" serverId="2"
		className="org.objectweb.joram.mom.dest.ClusterQueue">
		<freeReader />
		<freeWriter />
		<property name="period" value="100" />
		<property name="producThreshold" value="25" />
		<property name="consumThreshold" value="2" />
		<property name="autoEvalThreshold" value="true" />
		<property name="waitAfterClusterReq" value="100" />
		<jndi name="queue2" />
	</Queue>

	<ClusterCF>
		<ClusterElement name="cf0" location="server0" />
		<ClusterElement name="cf1" location="server1" />
		<ClusterElement name="cf2" location="server2" />
		<jndi name="clusterCF" />
	</ClusterCF>

	<ClusterQueue>
		<ClusterElement name="queue0" location="server0" />
		<ClusterElement name="queue1" location="server1" />
		<ClusterElement name="queue2" location="server2" />
		<jndi name="clusterQueue" />
	</ClusterQueue>

</JoramAdmin>
