Wasim's Site

Liferay OSGi Config Generator

Generate Liferay OSGi .config files for osgi/configs. Pick a component for a typed property form, or use custom mode for any PID. Correct Felix format.

1. Choose a component

2. Configure properties

Maximum stored versions per article. 0 keeps all versions.

Integer

Interval, in minutes, for the job that publishes and expires scheduled articles.

Integer

Maximum number of articles processed per check run.

Integer

Enable comments on Web Content articles.

Boolean

Keep article version history by default.

Boolean

Index all article versions for search.

Boolean

Token that splits an article into multiple pages.

String

Add another property

3. Generated com.liferay.journal.configuration.JournalServiceConfiguration.config

Drop this file into [Liferay Home]/osgi/configs/.

Prefer the plain .cfg format? (com.liferay.journal.configuration.JournalServiceConfiguration.cfg)

The .config format is preferred — it carries types and supports multi-valued properties. Use .cfg only for simple scalar values.

Liferay Web Content (Journal) OSGi Configuration

Service-level settings for Web Content articles, structures, and the scheduled check job.

PID: com.liferay.journal.configuration.JournalServiceConfiguration

Properties

PropertyTypeDefaultDescription
journalArticleMaxVersionCountInteger0Maximum stored versions per article. 0 keeps all versions.
checkIntervalInteger15Interval, in minutes, for the job that publishes and expires scheduled articles.
journalArticleCheckLimitInteger100Maximum number of articles processed per check run.
articleCommentsEnabledBooleantrueEnable comments on Web Content articles.
versionHistoryByDefaultEnabledBooleantrueKeep article version history by default.
indexAllArticleVersionsEnabledBooleantrueIndex all article versions for search.
journalArticlePageBreakTokenString@page_break@Token that splits an article into multiple pages.

These are the common, verified properties. Add any others for this PID with the custom-property row in the form above, then drop the file into [Liferay Home]/osgi/configs.