• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Start Page
  • Index
  • History
  • Last Change

Properties

Under the etc/ directory in both the source and the binary distributions, several files are provided which help to configure OMERO.server and OMERO.client:

  etc/omero.properties             - Our central
  etc/hibernate.properties         - Required by Hibernate since some properties are only configurable 
                                     via a classpath:hibernate.properties file.
  etc/log4j.properties             - (Not in JBoss. See JBOSS_HOME/server/default/conf/log4j.xml)
  etc/local.properties.example     - The properties that you will most likely want to change.
                                     This file can be copied to etc/local.properties to being, or 
                                     alternatively you can run "java omero setup"
                                     (Name will change to "...default")
  etc/local.properties             - Local overrides for other properties. 
                                     Note: this file is not copied into the EAR file currently. #660
  components/app/resources/ejb.properties
                                    - This file is responsible for signalling to the Spring that the context
                                      is being created in an application server.

On creation of an OmeroContext, the lookup for properties is (first wins):

  • Properties passed into the constructor (if none, then the default properties in internal.xml)
  • System.properties set via "java -Dproperty=value"
  • Configuration files in order listed.

This ordering is defined for the various components via "placeholder configurers" in:

  • source:trunk/components/server/resources/ome/services/config-local.xml
  • source:trunk/components/client/resources/ome/client/spring.xml
  • source:trunk/components/blitz/resources/omero/client.xml

Once configured at start, all values declared in one of the mentioned ways can be used in Spring configurations via the syntax:

 <bean id=...>
   <property name="mySetter" value="${property.name}"/>
 </bean>

Download in other formats:

  • Plain Text

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/