Top 34 Oracle Atg Interview Questions You Must Prepare 27.Jul.2024

Q1. When Or In Which Scenario I Will Go For Itemlookupdroplet?

To get complete item by providing id as a input parameter to that droplet.

Q2. How Do The Terms Atg Dynamo And Atg Framework Interact?

The ATG framework is used by Dynamo ATG.

Q3. Difference Between Express Checkout And Checkout?

Express- Logged in user has information stored

Guest- will enter all information (shipping, billing, review steps) and information is not saved

Q4. How To Create Custom Repository?

we have to create component/properties file:

$class=atg.adapter.gsa.GSARepository
$scope=global
XMLToolsFactory=/atg/dynamo/service/xml/XMLToolsFactory
dataSource=/atg/dynamo/service/jdbc/JTDataSource
definitionFiles=/com/my/myRepository.xml
idGenerator=/atg/dynamo/service/IdGenerator
tractionManager=/atg/dynamo/traction/TractionManager

Explanantion : have to tell all the properties in our component

Class is GSARepository OOTB it will do all operations getitem, getiteforupdate

XMLToolsFactory : for parsing xml

definitionFiles : items info will keep here

idGenerator : for generating unique ids

tractionManager : for traction purpose either to commit or roll back i particular traction/task.

Q5. What Are Atg Form Handlers?

ATG Formhandler is the intermediate class that comes in between a jsp form value and its bean class. They are there to evaluate the validity of form data before it is submitted, write data to and read data from a database or repository, and direct the user to different pages, depending on the results of the form submission

Q6. What Is The Scope Of Dynamo Components?

There are three different types of scopes for ATG components namely 

@request

@session

@Global

Global is the default scope

Q7. What Is Atg Dynamo?

ATG Dynamo or Dynamo Application Server(DAS) is a J2EE application server from Art Technology Group. 

Q8. What Is Atg Tag Library?

Atg tag library is a variant of jsp standard tag library. However atg provides its own set of tag libraries e.g. dsp,dspel, core

Q9. 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

Q10. How The Module Dependency Happened In Atg?

DAS DPS DSS DCS : from left to right

We maintained it in MANIFEST.MF file

Manifest-Version: 1.0

ATG-Config-Path: config/

ATG-Required: DAS DPS DSS DCS DAS

ATG-J2EE: j2ee-apps/text J2ee

ATG-EAR-Module: j2ee-apps/text J2ee

ATG-Class-Path: bin

Q11. What Is Manifest File?

Applications often depend on other modules, these dependencies are declared in this file.The file name is MANIFEST.MF and resides in the META_INF directory. It specifies ATG-Class-Path,ATG-Required, ATG-Config-Path etc

Q12. What Is Bcc?

Business Control Center- UI for Business Users (to upload content to Catalogs, create promotions etc)

Q13. What Are Different Modes Caching?

Caching modes are set at the item descriptor level, through the <item-descriptor> tag’s cache-mode attribute. The default caching mode is simple caching. To set a different caching mode on an item descriptor, set cache-mode to one of the following values: 

  • simple
  • locked
  • distributed (distributed TCP caching)
  • distributedJMS (distributed JMS caching)
  • distributedHybrid (distributed hybrid caching)

Q14. Define Atg Framework?

The ATG framework is used for building Web applications which can run on JBOSS, WebLogic, WebSphere and other J2EE application servers.

Q15. Explain The Atg Performance Issues ?

Performance problems come in many shapes and sizes, but they all mean that the processing of some task is not happening at the expected, and previously observed speed. Performance issues include CPU utilization problems, slow response times, high levels of db activitivities, SQL queries that run long time, Slow CA deployments, just to name a few.

Q16. 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.

Q17. What Is A Context Root?

Is a URL mounting point of the web application. It decides what URL site site visitors will enter to get to the site. 

“context-root” is specified in the “application.xml” file in the “j2ee-apps” folder.

Q18. Name 7 Common Elements A User May See During Checkout Through Atg Dynamo?

Add to shopping cart, Login, Billing address, Payment, eMail confirmation, Confirm button, Shipped eMail address

Q19. Differentiate Global,request & Session Scopes?

Global: components are accessible from all other components.Not available across ATG servers, each server has its own copy of global scoped component.

Session: me every user of the application gets a separate copy of the component, and component exists for duration of the user’s session.

Request : A component is called in for returning the values of a search, so each time a search is triggered an object instantiation happens and its gone when the result page is closed.Which me the scope of the search component is request.

Eg:-formhandlers normally have a request scope.

Q20. What Is Atg Nucleus?

Nucleus is a ATG container for components. It creates and initializes component instances on request. It manages the components scope. It locates the properties file for the component and through that it reaches the class file of the component. Nucleus components are Java Objects each with an associated .properties file which store configuration values.

Q21. What Is Base Class For All Atg Formhandlers?

GenericFormHandler.java

Q22. How We Can Achive Inheritance In Atg Repository Level?

sub-type-property=”type”

super-type=”super item”

Ex : <item-descriptor name=”shippingGroup” sub-type-property=”type” />

<item-descriptor name=”hardgoodShippingGroup” super-type=”shippingGroup” />

Here hardgoodShippingGroup is the subitem(like class) shippingGroup is the super Item(class)

Hence all the features/properties of shippingGroup we can get it in hardgoodShippingGroup item also.

Q23. Differences Between The Item-type And Component-item-type In Definition(xml)file?

  1. When your property in the item-descriptor needs to hold only one value which is of type of any other repository item, use ‘item-type=”item name”’ attribute.
  2. when your property needs to hold a collection (set/array/map/list) of items of type of any other repository item,use data-type = “set/array/map/list” and component-item-type=”another Item name” to specify what type each one of the element in the collection

Q24. Explain 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.

Q25. How To Create Component?

we can create it in 2 ways:

I) using ACC

II)by creating java+properties file in our module/Eclipse

Q26. What Are Custom Dsp Tags?

In general, the Custom tags will be written by the developer.

Dsp is all ready to use. you can use to render content dynamically by linking Nucleus components directly to your JSPs. Especially, the (dsp) tag library, allow you connect your JSP content to the Java code at work behind the scenes so you can separate your application logic from your presentation layer.

ATG 7 provides you with three tag libraries: JSTL, DSP/DSPEL, and Core. You can find these tag libraries in /DAS/taglib.

Q27. What Are All The Ootb Form Handlers You Used In Your Application Tell Me 6?

Mainly i used in my application level:

  1. CartModifierFormHandler
  2. PaymentGroupFormHandler
  3. ShippingGroupFormHandler
  4. CommitOrderFormHandler
  5. GenericFormHandler
  6. ProfileFormHandler

Q28. Which Are The Handlex Methods In ?

HandleX methods contain the actual function to be performed. its a method. Like in ProfileFormHandler- handleLogin

Q29. How Can I Resolve/initialize A Particular Component With Out Injecting In Any Component ?

ATG provides one method resolveName(component name we have to provide) in GenericService class using it we can initialise the component.

Q30. Describe The Meaning Of Atg Repository?

Using ATG Dynamo, this is the process for entering into a Database using programs while keeping the actual application logic apart from the Database.

Q31. What Are Derived Properties?

Enables one repository item to derive property values from another repository item or from another property in the same repository item.

Q32. What Are All The Input Parameters For Foreach Droplet?

array,elementName,indexName.

Q33. How Connection Will Give From Atg Module To Db?

/atg/dynamo/service/jdbc/JTDataSource.properties Using JTDataSource component will maintain the Schema/DB connection.

Q34. How A Component Is Instantiated ?

One can start or stop components manually using an ACC.We can instruct nucleus to start a component during server startup, this is done by modifying the “Initial.properties” file.Add the component name to the “initialServices” property inside the Initial.properties file.