Interview Questions: Basic ATG
1.Logging features of ATG
Any component whose base class implements “ApplicationLogging” Interface can use atg logging infrastructure. Logging can be done per-component, per-module/per-application basis. Error, Warning,Info & Debug messages are the various logging mechanisms.First three are logged by default, whereas the Debug messages are just for debugging purpose and should be removed when the code goes into production.Logging is managed using the “GLOBAL.properties” file, which specfies the log levels of various modules.
—————-2—————————–
Scope of a component started through “initialServices” is GLOBAL.
—————-3—————————–
Format of a Properties file :
Entries are generally expected to be a single line of the form
propertyName=propertyValue
or
propertyName:propertyValue
The property value is generally terminated by the end of the line. White space following the property value is not ignored, and is treated as part of the property value. White space at the beginning of the line is ignored.A property value can span several lines if each line is terminated by a backslash (‘\’) character.
The backslash character must also be “escaped” using a double backslash.Eg: C:\\home\\3tt
———————-4———————————
What is Config Layering??
Properties set in later entries in the CONFIGPATH override earlier entries. By adding a entry to the config path you can customize any components in the system without losing the original configuration information.You can have a global configuration common to all machines then have machine specific information in the last layer.
———————–5———————————-
How to register a repository with the dynamo??
Create “/config/atg/registry/ContentRepositories.properties” file and append our repository file (XML )name to the “initialRepositories” property
Eg: initialRepositories+= /myModule/mySampleRepository
—————————-6————————————
ATG standard product catalog uses which repository??
If we are using the standard product catalog provided by ATG no need to configure anything. We can straight away use the “/atg/commerce/catalog/ProductCatalog” repository component
Related posts:








Leave your response!