0 Replies Latest reply on Jan 8, 2010 8:01 PM by Jeremy Barth

    org.jboss.seam.properties on jvm

    Jeremy Barth Newbie

      Below I've quoted the text describing how to configure components.  My question is how to do this via the -D.  I need to configure the mail session host via the jvm parameter.  I tried -Dorg.jboss.seam.properties.org.jboss.seam.mail.mailSession.host=mail.host.com but its not picking it up (tries to use localhost).  I it does work by setting this in the components.xml.


      At http://docs.jboss.com/seam/latest/reference/en-US/html/xml.html it has this:


      "5.1. Configuring components via property settings


      Seam components may be provided with configuration properties either via servlet context parameters, via system properties, or via a properties file named seam.properties in the root of the classpath.


      The configurable Seam component must expose JavaBeans-style property setter methods for the configurable attributes. If a Seam component named com.jboss.myapp.settings has a setter method named setLocale(), we can provide a property named com.jboss.myapp.settings.locale in the seam.properties file, a system property named org.jboss.seam.properties.com.jboss.myapp.settings.locale via -D at startup, or as a servlet context parameter, and Seam will set the value of the locale attribute whenever it instantiates the component.


      The same mechanism is used to configure Seam itself. For example, to set the conversation timeout, we provide a value for org.jboss.seam.core.manager.conversationTimeout in web.xml, seam.properties, or via a system property prefixed with org.jboss.seam.properties. (There is a built-in Seam component named org.jboss.seam.core.manager with a setter method named setConversationTimeout().)"