...
OpenEJB will function fine with no configuration at all and will happily create things as needed and select defaults for everything. So in a real sense configuration is all about overriding those defaults. There are several places to put your overrides and an a specific order how they are applied. Here they are in order of preference; higher numbers win over lower numbers1 = highest, 5 = lowest.
- InitialContext properties
- jndi.properties from the classpath
- System properties
- openejb.xml declarations/properties
- service-jar.xml declarations/properties (internal concept, no need to worry about it)
...