Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
Adobe CQ Help / 

How to define a repository based configuration for a specific instance only

Adobe Community Help


Products Affected

  • Adobe CQ

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

Question

How is it possible to define a repository based configuration for a specific instance, for example for a development author, a test author or a live author instance?

Answer, Resolution

Generally there are two ways to configure CQ5:

Configuration on the Apache Felix Web Management Console

The configuration on the Apache Felix Web Management Console (http://<host>:<port>/system/console/configMgr) is always specific for the current instance.
A description can be found at our docmentation, see [0].

Repository based configuration

Additional to the configuration on the Apache Felix Web Management Console, it is possible to store configuration in the CRX repository as nodes of nodetype sling:OsgiConfig, see [1].
With this it is possible to share configuration among several instances.
The name of these nodes have to be equal to the Persistent Identity (PID) of the configuration - usually it is the name of the service, if you look at http://<host>:<port>/system/console/config you see these names listed as service.pid properties. These configuration nodes have to be child-nodes of nodetype nt:folder with a name starting with config followed by a dot and all the run-modes the config should be applied to separated by a dot.

Examples: config.author, config.publish, config.author.dev, config.author.foo.dev etc

Run-Mode

It is possible to define specific run-mode(s) a specific instance should run on. By default an author instance runs on run-mode author and a publish instance runs on run-mode publish. It is possible to define several run-modes for one instance, for example author, foo and dev.

These run-modes have to be set as VM options.

For example on the console:

java -Dsling.run.modes=author,foo,dev -Xmx256m -jar cq-wcm-quickstart-5.2.0.jar

or in the start script:

# default JVM options
CQ_JVM_OPTS='-Dsling.run.modes=author,foo,dev'

The current run-modes of an instance are visible at http://<host>:<port>/system/console/runmodes

Note: It is not recommended to change or remove the default run-modes author and publish. Simply add your specific run-modes to the default list of existing run-modes.


Note: The same mechanism works for the repository based bundle installation. The bundles have to be placed below nodes of nodetype nt:folder with a name starting with install followed by a dot and all the run-modes the bundles should be applied to separated by a dot.

Example: To have a specific SMTP mailserver configuration for all your instances running on run-mode foo simply create a node with name config.foo and nodetype nt:folder in /apps/geometrixx and copy the node /libs/cq/config/com.day.cq.mailer.DefaultMailService to /apps/geometrixx/config.foo and adapt the properties smtp.host etc.

Example: To have a specific Logrotation configuration just use the configuration package in the KB article How to rotate request.log and access.log and rename the node config for example to config.foo if the config should be taken for all your instances running on run-mode foo only...

Applies to

CQ 5.2+

[0] http://dev.day.com/content/docs/v5_2/html-resources/cq5_guide_system_administrator/ch05s03.html
[1] http://dev.day.com/content/docs/v5_2/html-resources/cq5_guide_system_administrator/ch05s02.html

Keywords: CQ

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement