Home » ATG & Java

Interview Questions: Basic ATG

17 November 2011 No Comments Posted By:Sam

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:

  1. Interview Questions:Basic ATG
  2. Understanding-ATG(The e-Commerce Framework)
  3. How to Use RQL in JAVA,ATG
  4. .NET Interview Questions & Answers
  5. Dsp Tags Continued

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>