Tuesday, 17 July 2018

ATG BCC Targeters info


It is explained at oracle ATGPersProgGuide.pdf

atg/targeting/TargetingSourceMap.properties

sourceMap+=xxComponent=com/xx/yy/xxComponent

----


 This section covers the targeters bulk import steps.These steps are executed in one of my project Once We did initial BCC setup via CIM.

1)Need to create one folder "ImportTargeter" in the path /opt/ATG/ATG11.1/home.
2)And copy the required targeters in this folder.
3)Need to prepare any manifest file(targeter.MF) as mentioned below.
4)Need to set the DAS/lib/classes.jar and RL/lib/RLClient.jar to the Classpath.
4)Before executing the RLClient.bat/RLClient.sh file, need to set to change in RLClient.bat file as at the end.
  java atg.repository.loader.RLClient %1 %2 %3 %4 %5 %6 %7 %8 %9

 If we have change like this, the DAS/lib/classes.jar and RL/lib/RLClient.jar  can be used.Otherwise, DAS/lib/classes.jar won't be available and got the error as one of the class is not available from classes.jar

 5)Change below configuration at BCC dynamo administration.
     dyn/admin/nucleus/atg/epub/file/VersionedLoaderEventListener/

rootPath /opt/ATG/ATG11.1/home/ImportTargeter
createProcesses TRUE

6)Execute the following command.
./RLClient.sh -m /opt/ATG/ATG11.1/ImportTargeter/targeter.mf -h 150.21.21.162 -r 8861

Where : 8861 is the RMI port of Publishing server and  150.21.21.162 is publishing server host number


7) Environment Variable Configuration at Linux box.

Set the CLASSPATH for below Jars. ${DYNAMO_ROOT}/RL/lib/RLClient.jar ${DYNAMO_ROOT}/DAS/lib/classes.jar

For Linux: Go to the below path set the ClassPath values into the .bash_profile file. /home/admin/.bash_profile

Once the Classpath is set at Linubox, please close all Linux box screens. Then only Classpath entry will work.


The following file should be created.For each path , there should be one <add  script.
i.e., Homepage --> one add tag
i.,.,Footer -->one add tag.

If  these folders are available  already at  BCC, no add to <add tag for each folder.

targeter.MF

<manifest>
<add type-mapping="/atg/epub/file/typemappers/FileFolderTypeMapping">
/opt/ATG/ATG11.1/home/ImportTargeter/atg/registry/RepositoryTargeters/Homepage
</add>
<add type-mapping="/atg/epub/file/typemappers/FileFolderTypeMapping">
/opt/ATG/ATG11.1/home/ImportTargeter/atg/registry/RepositoryTargeters/Homepage/Footer
</add>
<add type-mapping="/atg/epub/file/typemappers/TargeterTypeMapping"> /opt/ATG/ATG11.1/home/ImportTargeter/atg/registry/RepositoryTargeters/Homepage/Footer/CookieMessagePolicyTargeter.properties
</add>
</manifest>

Attached the Import targeter zip file which contains all the Targeters and Manifest file.This need to  be copied as mentioned in the above steps and execute the RLClient.sh as mentioned above.

No comments:

Post a Comment