| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- $Rev: 594117 $ $Date: 2007-11-13 00:35:48 +1100 (Tue, 13 Nov 2007) $ --> |
| |
| <module xmlns="http://geronimo.apache.org/xml/ns/deployment-${geronimoSchemaVersion}"> |
| |
| <gbean name="FarmPersistence" class="org.apache.geronimo.persistence.PersistenceUnitGBean"> |
| <attribute name="persistenceUnitName">FarmPersistence</attribute> |
| <attribute name="persistenceUnitTransactionType">RESOURCE_LOCAL</attribute> |
| <attribute name="persistenceUnitRoot"></attribute> |
| <attribute name="excludeUnlistedClasses">true</attribute> |
| <attribute name="managedClassNames">org.apache.geronimo.farm.plugin.JpaClusterInfo, |
| org.apache.geronimo.farm.plugin.JpaNodeInfo, |
| org.apache.geronimo.farm.plugin.JpaPluginInstance, |
| org.apache.geronimo.farm.plugin.JpaPluginList |
| </attribute> |
| <attribute name="properties"> |
| openjpa.Log=commons |
| openjpa.jdbc.DBDictionary=org.apache.openjpa.jdbc.sql.DerbyDictionary |
| openjpa.jdbc.SynchronizeMappings=buildSchema(ForeignKeys=true) |
| openjpa.jdbc.UpdateManager=operation-order |
| openjpa.Sequence=table(Table=OPENJPASEQ, Increment=100) |
| openjpa.InverseManager=true |
| </attribute> |
| <reference name="JtaDataSourceWrapper"> |
| <name>PluginFarmDatasource</name> |
| </reference> |
| <reference name="NonJtaDataSourceWrapper"> |
| <name>NoTxPluginFarmDatasource</name> |
| </reference> |
| </gbean> |
| |
| <gbean name="PluginFarm" class="org.apache.geronimo.farm.plugin.FarmGBean"> |
| <attribute name="defaultPluginRepository">~/.m2/repository</attribute> |
| <reference name="PersistenceUnit"> |
| <name>FarmPersistence</name> |
| </reference> |
| </gbean> |
| |
| <gbean name="MulticastLocation" class="org.apache.geronimo.farm.discovery.MulticastLocation"> |
| <attribute name="host">239.255.3.2</attribute> |
| <attribute name="port">6142</attribute> |
| </gbean> |
| |
| <gbean name="HeartbeatMonitor" class="org.apache.geronimo.farm.plugin.HeartbeatMonitor"> |
| <reference name="MulticastLocation"> |
| <name>MulticastLocation</name> |
| </reference> |
| </gbean> |
| |
| <gbean name="DiscoveryAgent" class="org.apache.geronimo.farm.discovery.MulticastDiscoveryAgent"> |
| <attribute name="heartRate">500</attribute> |
| <attribute name="maxMissedHeartbeats">10</attribute> |
| <attribute name="loopbackMode">false</attribute> |
| <attribute name="initialReconnectDelay">5000</attribute> |
| <attribute name="maxReconnectDelay">30000</attribute> |
| <attribute name="backOffMultiplier">0</attribute> |
| <attribute name="useExponentialBackOff">false</attribute> |
| <reference name="MulticastLocation"> |
| <name>MulticastLocation</name> |
| </reference> |
| </gbean> |
| |
| <gbean name="FarmDiscoveryListener" class="org.apache.geronimo.farm.plugin.FarmDiscoveryListener"> |
| <attribute name="defaultClusterName">cluster0</attribute> |
| <attribute name="discoveryType">farm</attribute> |
| <attribute name="userName">system</attribute> |
| <attribute name="password">manager</attribute> |
| <reference name="DiscoveryAgent"> |
| <name>DiscoveryAgent</name> |
| </reference> |
| <reference name="NodeListener"> |
| <name>PluginFarm</name> |
| </reference> |
| </gbean> |
| |
| </module> |