You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by David Blevins <da...@visi.com> on 2010/06/11 00:05:56 UTC

How to add a property to a container

It's basically as simple as this:

  http://markmail.org/message/amwz73mzqvdtzzjx

More or less just:

  - add the property to the service-jar.xml
  - add setter to factory class listed in service-jar.xml
  - ensure there is a java.beans.PropertyEditor for the injected type
  - add property to the default.openejb.conf file

Done.  Now that property is available to the container and can be overridden in any one of the various ways we allow.

The same basic process applies to anything buildable via a service-jar.xml and configurable via the openejb.xml or system properties.

Adding properties is not real common, but here's the process if you need it!


-David