« Configuration XML d'OFBiz » : différence entre les versions

De FrozenWiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
=== Voir aussi ===
[Technical setup guide https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html]
== Ports TCP/IP ==
== Ports TCP/IP ==
Pour changer les ports TCP/IP utilisés par OFBiz (par example pour les migrer dans un range 3000-3999):
Pour changer les ports TCP/IP utilisés par OFBiz (par example pour les migrer dans un range 3000-3999):

Version du 11 juillet 2010 à 12:33

Voir aussi

[Technical setup guide https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html]

Ports TCP/IP

Pour changer les ports TCP/IP utilisés par OFBiz (par example pour les migrer dans un range 3000-3999):

  • mettre à jour framework/service/config/serviceengine.xml
  • mettre à jour framework/base/config/*.xml

Usually only just one of these would need to be changes most likely ofbiz-containers.xml however here is the list of all potential files to update:

both-containers.xml
test-containers.xml
jetty-containers.xml
limited-containers.xml
ofbiz-containers.xml
log4j.xml
rmi-containers.xml


framework/base/config/ofbiz-containers.xml

Commenter les services qu'on ne veut pas démarrer :

 <!--
 <property name="telnet-port" value="9990"/>
 <property name="app-name" value="OFBiz"/>
 -->

framework/common/config/general.properties

Configurer les variables de base:

currency.uom.id.default=EUR
country.geo.id.default=FRA

framework/webapp/config/url.properties

Configurer les propriétés du site web:

port.https=443
port.http=80

framework/entity/config/entityengine.xml

Configurer la base de données à utiliser avec OFBiz (postgresql, mysql, derby, ...). Assurez-vous d'avoir le bon module OFBiz installé auparavant:

   <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
       <group-map group-name="org.ofbiz" datasource-name="localpostgres"/>
       <group-map group-name="org.ofbiz.odbc" datasource-name="localderbyodbc"/>
   </delegator>
   <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" entity-eca-enabled="false" distributed-c
       <group-map group-name="org.ofbiz" datasource-name="localpostgres"/>
       <group-map group-name="org.ofbiz.odbc" datasource-name="localderbyodbc"/>
   </delegator>

En configurant les droits d'accès corrects, dans le même fichier un peu plus bas:

   <datasource name="localpostgres"
           helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
   [...]
       <inline-jdbc
               jdbc-driver="org.postgresql.Driver"
               jdbc-uri="jdbc:postgresql://127.0.0.1/ofbiz"
               jdbc-username="ofbiz"
               jdbc-password="password"
   [...]
   </datasource>