Log in / create account
View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

Openbravo.properties

Rating :
4.50/5
(2 votes cast)
You have to be registered to be able to vote

Contents

Introduction

Openbravo.properties is the file where Openbravo environment configuration is centrally maintained.

Edition

Openbravo.properties is a plain text file that you can edit manually by duplicating the Openbravo.properties.template file or use a graphical assistant (wizard).

For this purpose, move to config/setup-tool folder inside your installation directory and execute the setup-properties assistant specific for your operating system and architecture.

Note: If there is no setup binary for your operating system and architecture, send a request to <jar at openbravo dot com>.

After accepting Openbravo Public License Version 1.1, select date and time formats:

Then choose directories and context names:

If you will be developing the Openbravo ERP source code, fill in the development parameters:

After selecting your database type (Oracle or PostgreSQL), fill required parameters for its configuration:

Contents

The content of this file include:

Development configuration

Here is defined the information used by developers.

bbdd.outputscript=databasescript.sql
bbdd.verbosity=INFO
application.version=2.40
development.environment.id=1

Date/Time formats

Here are defined display and storage formats for time and dates.

dateFormat.js = %d-%m-%Y
dateFormat.sql = DD-MM-YYYY
dateFormat.java = dd-MM-yyyy
dateTimeFormat.java = dd-MM-yyyy HH:mm:ss

DB configuration

This part of the file defines the database the application will connect to.

This lines define an Oracle connection:

bbdd.sid=xe
bbdd.systemUser=SYSTEM
bbdd.systemPassword=SYSTEM
bbdd.user=TAD
bbdd.password=TAD
bbdd.driver=oracle.jdbc.driver.OracleDriver
bbdd.url=jdbc:oracle:thin:TAD/TAD@localhost:1521:xe
bbdd.rdbms=ORACLE
bbdd.sessionConfig=ALTER SESSION SET NLS_DATE_FORMAT\='DD-MM-YYYY' NLS_NUMERIC_CHARACTERS\='.,'


And these others for PostgreSQL:

bbdd.sid=ob235_1
bbdd.systemUser=postgres
bbdd.systemPassword=password
bbdd.user=tad
bbdd.password=tad
bbdd.driver=org.postgresql.Driver
bbdd.url=jdbc:postgresql://localhost:5432
bbdd.rdbms=POSTGRE

Notice that here bbdd.sid is, in fact, the PostgreSQL database name.

Authentication configuration

This property is used configure the Authentication Manager for Openbravo ERP

The Authentication Manager included in Openbravo ERP are:

Default Authentication Manager 
This is the default authentication manager that provides the classic login page. Class name org.openbravo.authentication.basic.DefaultAuthenticationManager.
LAM Authentication Manager 
This is the authentication manager used for Single Sign-on. Class name org.openbravo.authentication.lam.LamAuthenticationManager.
Autologon Authentication Manager 
This is an authentication manager for demostration purposes. Class name org.openbravo.authentication.basic.AutologonAuthenticationManager.

This is an example using the default authentication manager.

authentication.class=org.openbravo.authentication.basic.DefaultAuthenticationManager

#authentication.class=org.openbravo.authentication.lam.LamAuthenticationManager

#authentication.class=org.openbravo.authentication.basic.AutologonAuthenticationManager
#authentication.autologon.username=Openbravo

build.xml properties

These properties are used by the build.xml file, so they must be properly configured before any ant task is executed:

attach.path=/opt/openbravo/attachments
web.url=@actual_url_context@/web
context.url=http://localhost:8080/openbravo

The main ones are:

Old configuration

Currently (all the releases including the 2.3x ones) this file is only used for date/time and development purposes.

The new parts of the file are used now in the development subversion trunk and will be in use for the 2.4x release. The goal is to remove (in order to have only one configuration file) dbCon5.xml and XmlPool.xml files.

Retrieved from "http://wiki.openbravo.com/wiki/Openbravo.properties"

This page has been accessed 10,064 times. This page was last modified 13:36, 30 June 2008. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Configuration