Child pages
  • About the Properties file

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In any case, WebObjects directly supports the use of Java 1.4 style properties entries in the file named Resources/Properties in the woa and framework bundle format.

...

Code Block
titleDerived Properties example

## Set the smtp server host one time here... and the rest get it thru
#+ use of derived propertiesw calculated on the fly when loaded into System properties.
app.smtpserver=mail.domain.com

## WebObjects smtp host setting
WOSMTPHost=@@app.smtpserver@@

## Setting for a log4j smtp appender named 'myMail'
log4j.appender.myMail.SMTPHost=@@app.smtpserver@@

## Setting for Wonder's ERJavaMail framework
er.javamail.smtpHost=@@app.smtpserver@@

## Setting for Sun's javamail library
mail.smtp.host=@@app.smtpserver@@

...