Expand my Community achievements bar.

SOLVED

How to configure an agent factory through run modes?

Avatar

Level 4

I am working on User Synchronization in AEM 6.2.

We need to deploy many configurations to our environment to support this.

The issue I have is how do you create run mode configurations for factory configurations. These also include loggers, jdbc connections, agents of all types.

I know how run mode configurations work for simple non-factory type configurations. It is the factory type that I am not getting to work.

Examples would be greatly appreciated.

Thanks

Found in the path ../launchpad/config/org/apache/sling/distribution/agent/impl/SyncDistributionAgentFactory/3af37bcc-eabf-49dd-8da3-73720523c239.config

details="Coordinating\ agent\ to\ synchronize\ social\ data\ between\ publishers"

enabled=B"false"

name="socialpubsync"

packageBuilder.target="(name\=socialpubsync-vlt)"

packageExporter.endpoints=[ \

  "http://localhost:4503/libs/sling/distribution/services/exporters/socialpubsync-reverse", \

  ]

packageImporter.endpoints=[ \

  "http://localhost:4503/libs/sling/distribution/services/importers/socialpubsync", \

  ]

requestAuthorizationStrategy.target="(|(name\=privilegeReplicate)(name\=default))"

service.factoryPid="org.apache.sling.distribution.agent.impl.SyncDistributionAgentFactory"

service.pid="org.apache.sling.distribution.agent.impl.SyncDistributionAgentFactory.3af37bcc-eabf-49dd-8da3-73720523c239"

serviceName="socialpubsync-distributionService"

title="Social\ Publisher\ Sync"

transportSecretProvider.target="(name\=socialpubsync-publishUser)"

triggers.target="(name\=socialpubsync-scheduled-trigger)"

useMultipleQueues=B"true"

And

../launchpad/config/org/apache/sling/distribution/agent/impl/SyncDistributionAgentFactory/factory.config

factory.pid="org.apache.sling.distribution.agent.impl.SyncDistributionAgentFactory"

factory.pidList=[ \

  "org.apache.sling.distribution.agent.impl.SyncDistributionAgentFactory.3af37bcc-eabf-49dd-8da3-73720523c239", \

  ]

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Tom

      To create any Factory Type Configurations, the configs should be appended with a unique id . Example is the Logger Factory Config. Please find the reference below

1243988_pastedImage_3.png

The documentation clearly says Configuring OSGi  -

Additional Reads

https://blog.kristianwright.com/2013/08/21/aem-best-practice-osgi-configurations/

Thanks

Veena

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi Tom

      To create any Factory Type Configurations, the configs should be appended with a unique id . Example is the Logger Factory Config. Please find the reference below

1243988_pastedImage_3.png

The documentation clearly says Configuring OSGi  -

Additional Reads

https://blog.kristianwright.com/2013/08/21/aem-best-practice-osgi-configurations/

Thanks

Veena