SlideShare a Scribd company logo
1 of 32
INTRODUCTION TO ATG
FRAMEWORK
AGENDA
What is E-Commerce & m-commerce
Different frameworks/platforms providing e-commerce solutions
Overview of Oracle ATG
Different modules provided by Oracle ATG Commerce
Nucleus
Different Oracle ATG Components
E-COMMERCE & M-COMMERCE
Distributing, Buying, Selling and marketing products and services
over internet through which transaction or terms of sale are
performed electronically.
Types of E-Commerce
 B2B(Applies to businesses buying from and selling to each other. E.g.
Walmart)
 B2C(Applies to business that sells its products or services to consumers.
E.g. flipkart)
 C2B(Applies to any consumer that sells a product or service to a business. )
 C2C(Applies to sites primarily offering goods and services to assist
consumers interacting with each other. E.g. olx)
CONCEPTUAL VIEW OF E-
COMMERCE
FRAMEWORKS PROVIDING E-
COMMERCE SOLUTIONS
Oracle ATG Commerce
SAP Hybris
IBM WCS
Magneto
ART TECHNOLOGY GROUP (ATG)
Web Commerce Application
Highly scalable and flexible component-based architecture.
E-commerce software solutions & On-demand commerce
optimization applications.
Co-founded by Jeet Singh & Joseph Chung in 1991.
ATG’s solutions provide merchandising, marketing, content
personalization, automated recommendations.
Acquired by Oracle in 2005.
The latest version of Oracle ATG Commerce is 11, which includes the
integration support of REST MVC framework, Endeca Experience
Manager.
ATG PLATFORM
ATG platform is built on “layered” and “modular” approach.
ATG Web Commerce applications implement a component
development model based on Java Beans and JSP
The core of ATG platform is it’s Application framework i.e. Dynamo
Application Framework (DAF).
DAF runs on top of the application server (like weblogic, websphere
etc..) and provides essential facilities for application development and
deployment.
ARCHITECTURE OF ORACLE ATG
BASED APPLICATION.
APPLICATIONS IN ORACLE
COMMERCE
Commerce
Personalization
Merchandising
Business Control Center
Customer Service Center
Endeca Commerce & Experience Manager
ATG COMMERCE
DIFFERENT MODULES AVAILABLE IN
ATG
DPS
 Personalization module
 Used to create and maintain user profiles
 User specific business rules
DCS
 Core Commerce Module
 Provides the commerce capabilities like Shopping Cart, Order Purchase &
Checkout.
CONTD..
DSS
 Extends the targeting capabilities of DPS
 Scenarios are event driven
 Designed to manage interaction between the site visitor and content
DCC
 Provides developer with the tool “ACC”
B2BCommerce
B2CCommerce
DCS.CustomCatalogs
Fulfillment
DAS-UI
KEY CONCEPTS
Component Centric Model
MVC2 framework
Dependency Injection
Modular approach
Data Anywhere Architecture (Similar to ORM)
COMPONENT DEVELOPMENT
MODEL
What is a Component?
Examples of Component Architecture
 Microsofts COM/DCOM
 Java Beans
 CORBA
Benefits of Component Development Model
 Code Reusability
 Reduced Development time
 Continuous, Incremental improvements
COMPONENT IN ATG
Any simple Java Class can be treated as a “Component”.
To define a component in ATG, we need to create .properties file in
the corresponding config directory.
E.g. public class MyComponent{ } ->
src/com/dev/MyComponent.java
Create a .properties file in the corresponding config directory
i.e. config/com/dev/MyComponent.properties
The properties file contains the class name and the scope of the
component (request/session/global)
DYNAMO APPLICATION
FRAMEWORK
DAF is the core of Oracle ATG Web Commerce
It runs on top of the application server
It provides a Component Development Environment.
Supplies essential facilities for application development and
deployment
 Nucleus
 Repositories
 Droplets
 FormHandlers
 Tag Libraries
NUCLEUS
Dynamo’s Open Object Framework
Central registry for the java beans which contains our application
level logic.
Creates and configures the components
Organizes them into a hierarchical namespace
FORM HANDLER
Specialized Nucleus Components
Can be embedded into JSPs to do form validation and based on the
result perform actions like submitting user data, forwarding the user
to some other pages
Form handler components have handleXXX() methods, which takes
care of appropriate handler logic based on user action.
Some of the mostly used OOTB form handlers are
ProfileFormHandler, CartModifierFormHandler,
CommitOrderFormHandler etc..
DROPLET
Specialized Nucleus components which are used to display dynamic
content on the JSP pages
Also known as “Dynamo Servlet Beans”
Java Developers and Page designers can work independently and
applications are easier to maintain
OOTB droplets are ItemLookupDroplet, ForEach, Switch etc..
REPOSITORIES
Data Access layer that defines generic representation of data store
Data Anywhere Architecture (DAA) provides a unified view of content
and data
Core of DAA is “Repository API”
Using Repository API, we can employ a single approach to accessing
different data types, including SQL databases, LDAP directories,
content management systems and file systems
HIGH LEVEL OVERVIEW OF DAA
Advantages
 Data Source Independence
 Maximum Performance
 Simplified transactional control
 Fine-grained Access Control
TAG LIBRARIES
Earlier the presentation language used is “JHTML”
JHTML has lots of custom tags to access Dynamo Components
JSP became the defacto language for Presentation tier
Introduced to access Nucleus components and render dynamic
content from JSP files
Example tags include <dsp:form>, <dsp:input>,<dsp:valueof>,
<dsp:a>, <dsp:getvalueof> etc..
DROPLETS
To display the dynamic content on JSP pages using nucleus
components.
We can embed the output of a nucleus component using dsp tag
libraries
e.g. <dsp:droplet name=“/atg/dynamo/ForEach>
<dsp:param name=“array”
bean=“/com/sample/Student.subjects/>
<dsp:oparam name=“output”>
<dsp:valueof param=“element”/>
</dsp:oparam>
CONTD…
Each droplet has a predefined set of parameters that control
it’s behavior
 Input
 Output
 Open
Input parameters are passed into the droplet
e.g. <dsp:param name=“array” bean=“/com/sample/Student.subjects/>
Output parameters are set by the droplet
e.g. <dsp:valueof param=“element”/>
Open parameters specify code to execute at different stages of servlet
processing
Content that needs to be displayed before output is displayed using
outputStart <dsp:oparam name=“outputStart”> …. </dsp:oparam>
<dsp:oparam name=“output”>……</dsp:oparam>
Content that needs to be displayed before output is displayed using
CONTD..
Some of the OOTB droplets
<dsp:droplet name=“atg/dynamo/droplet/foreach”>
<dsp:droplet name=“atg/dynamo/droplet/switch”>
<dsp:droplet name=“atg/dynamo/droplet/empty”>
<dsp:droplet name=“atg/commerce/catalog/ProductLookup”>
FORM HANDLERS
Evaluates the form data before it is submitted, check for errors, and
determine what action to take.
The form input fields are associated with the properties of the form
handler rather than the component that we want to modify
E.g. <dsp:input type=“text” bean=“MyFormHandler.age”>
Form Handler must include one or more handler methods, to handle
the processing of the form.
CONTD…
Handler methods links form elements with Nucleus components
Signature of the handler method
Public boolean handleXXX(DynamoHttpServletRequest req,
DynamoHttpServletResponse res){
----
}
Action based on return valueReturn Value Action
false No further values are processed after the handler is
called. Rest of the page is not served.
true Normal processing of the form values continues
Page specified by the form’s action attribute is served.
CONTD...
Sample Jsp file showing form data
<dsp:form action=“SaveData”>
<dsp:input type=“text” value=“jeet”
bean=“MyFormHandler.firstName” />
<dsp:input type=“text” value=“singh”
bean=“MyFormHandler.firstName” />
<dsp:input type=“submit” value=“Save”
bean=“MyFormHandler.save”/>
<dsp:input type=“cancel” value=“Reset”
bean=“MyFormHandler.cancel” />
</dsp:form>
CONTD…
public class MyFormHandler extends GenericFormHandler{
private String firstName;
private String lastName;
public boolean handleSave(DynamoHttpServletRequest req,
DynamoHttpServletResponse res){ return true/false;}
public boolean handleCancel(DynamoHttpServletRequest req,
DynamoHttpServletResponse res){ return true/false;}
…..
…..
}
CONTD…
MyFormHandler.properties
$class=MyFormHandler -> Fully Qualified Class Name
$scope=request -> how the class instance will behave
age=25 -> form handler property. We have to provide as
name value pairs.
subjects= java,atg,openapi
prop1^=MyOtherFormHandler.prop1
SCOPE OF THE COMPONENTS
•Scope specifies how the nucleus component is used among
different users.
•We specify the scope of the component in .properties file
•Available scopes
• Global: shared among all the users (default)
• Session: for each user session a separate instance will be provided
• Request: for each active request a separate instance will be provided
• Window: for each browse window a separate instance will be provided
• Prototype: every time the component is resolved separate instance of the
components will be provided

More Related Content

What's hot

What's hot (20)

Microservices Design Patterns | Edureka
Microservices Design Patterns | EdurekaMicroservices Design Patterns | Edureka
Microservices Design Patterns | Edureka
 
Java 17
Java 17Java 17
Java 17
 
Adobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core Components
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
ASP .net MVC
ASP .net MVCASP .net MVC
ASP .net MVC
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
React js programming concept
React js programming conceptReact js programming concept
React js programming concept
 
Mongodb
MongodbMongodb
Mongodb
 
ReactJs
ReactJsReactJs
ReactJs
 
React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...
 
Web api
Web apiWeb api
Web api
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
 
MongoDB
MongoDBMongoDB
MongoDB
 
React Native
React NativeReact Native
React Native
 
Designing APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven DesignDesigning APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven Design
 
Domain-Driven Design
Domain-Driven DesignDomain-Driven Design
Domain-Driven Design
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootUnderstanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring Boot
 
MVC Framework
MVC FrameworkMVC Framework
MVC Framework
 
High level design document template
High level design document templateHigh level design document template
High level design document template
 
Event Sourcing & CQRS, Kafka, Rabbit MQ
Event Sourcing & CQRS, Kafka, Rabbit MQEvent Sourcing & CQRS, Kafka, Rabbit MQ
Event Sourcing & CQRS, Kafka, Rabbit MQ
 

Viewers also liked

ATG - Common Terminologies
ATG - Common TerminologiesATG - Common Terminologies
ATG - Common Terminologies
Keyur Shah
 
Xbox one development kit
Xbox one development kitXbox one development kit
Xbox one development kit
rojizo frio
 
MSU - Strategc Organizational Leadership & Management
MSU - Strategc Organizational Leadership & ManagementMSU - Strategc Organizational Leadership & Management
MSU - Strategc Organizational Leadership & Management
Keyur Shah
 

Viewers also liked (20)

ATG - Web Commerce @ Your Figertips
ATG - Web Commerce @ Your FigertipsATG - Web Commerce @ Your Figertips
ATG - Web Commerce @ Your Figertips
 
Oracle Commerce Using ATG & Endeca - Do It Yourself Series
Oracle Commerce Using ATG & Endeca - Do It Yourself SeriesOracle Commerce Using ATG & Endeca - Do It Yourself Series
Oracle Commerce Using ATG & Endeca - Do It Yourself Series
 
Atg Introduction
Atg IntroductionAtg Introduction
Atg Introduction
 
ATG Best Practices
ATG Best Practices ATG Best Practices
ATG Best Practices
 
Achieving the Ultimate TTM with ATG
Achieving the Ultimate TTM with ATGAchieving the Ultimate TTM with ATG
Achieving the Ultimate TTM with ATG
 
ATG - Common Terminologies
ATG - Common TerminologiesATG - Common Terminologies
ATG - Common Terminologies
 
ATG Commerce: Full Capabilities Overview
ATG Commerce: Full Capabilities OverviewATG Commerce: Full Capabilities Overview
ATG Commerce: Full Capabilities Overview
 
ATG pipelines
ATG pipelinesATG pipelines
ATG pipelines
 
ATG Tutorials - Promotion.
ATG Tutorials - Promotion.ATG Tutorials - Promotion.
ATG Tutorials - Promotion.
 
ATG - Commerce Service Center (CSC)
ATG - Commerce Service Center (CSC)ATG - Commerce Service Center (CSC)
ATG - Commerce Service Center (CSC)
 
ATG Product Modules [INTERESTING VIEW]
ATG Product Modules [INTERESTING VIEW]ATG Product Modules [INTERESTING VIEW]
ATG Product Modules [INTERESTING VIEW]
 
ATG Advanced Profile Management
ATG Advanced Profile ManagementATG Advanced Profile Management
ATG Advanced Profile Management
 
Common mistakes for ATG applications that affect performance
Common mistakes for ATG applications that affect performanceCommon mistakes for ATG applications that affect performance
Common mistakes for ATG applications that affect performance
 
Oracle ATG Commerce Overview for developers
Oracle ATG Commerce Overview for developers Oracle ATG Commerce Overview for developers
Oracle ATG Commerce Overview for developers
 
Oracle Endeca Commerce - Installation Guide
Oracle Endeca Commerce - Installation GuideOracle Endeca Commerce - Installation Guide
Oracle Endeca Commerce - Installation Guide
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup Webinar
 
ATG Framework,Formhandlers,Pricing
ATG Framework,Formhandlers,PricingATG Framework,Formhandlers,Pricing
ATG Framework,Formhandlers,Pricing
 
Xbox one development kit
Xbox one development kitXbox one development kit
Xbox one development kit
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's Guide
 
MSU - Strategc Organizational Leadership & Management
MSU - Strategc Organizational Leadership & ManagementMSU - Strategc Organizational Leadership & Management
MSU - Strategc Organizational Leadership & Management
 

Similar to Overview of atg framework

The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
Lucas Jellema
 
C# .NET Developer Portfolio
C# .NET Developer PortfolioC# .NET Developer Portfolio
C# .NET Developer Portfolio
cummings49
 
Data Access Tech Ed India
Data Access   Tech Ed IndiaData Access   Tech Ed India
Data Access Tech Ed India
rsnarayanan
 

Similar to Overview of atg framework (20)

Adaptive Architecture
Adaptive ArchitectureAdaptive Architecture
Adaptive Architecture
 
Crafted Design - LJC World Tour Mash Up 2014
Crafted Design - LJC World Tour Mash Up 2014Crafted Design - LJC World Tour Mash Up 2014
Crafted Design - LJC World Tour Mash Up 2014
 
Design patterns
Design patternsDesign patterns
Design patterns
 
PPT on javascript ajax and css and some points related to server
PPT on javascript ajax and css and some points related to serverPPT on javascript ajax and css and some points related to server
PPT on javascript ajax and css and some points related to server
 
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
Java TechTalk "Spring boot made life easier with Kubernetes and Microservices"
 
Create an application with ember
Create an application with ember Create an application with ember
Create an application with ember
 
MVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on RailsMVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on Rails
 
Crafted Design - ITAKE 2014
Crafted Design - ITAKE 2014Crafted Design - ITAKE 2014
Crafted Design - ITAKE 2014
 
Crafted Design - Sandro Mancuso
Crafted Design - Sandro MancusoCrafted Design - Sandro Mancuso
Crafted Design - Sandro Mancuso
 
Oracle ADF Tutorial
Oracle ADF TutorialOracle ADF Tutorial
Oracle ADF Tutorial
 
Modern Database Development Oow2008 Lucas Jellema
Modern Database Development Oow2008 Lucas JellemaModern Database Development Oow2008 Lucas Jellema
Modern Database Development Oow2008 Lucas Jellema
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
 
Mondrian - Geo Mondrian
Mondrian - Geo MondrianMondrian - Geo Mondrian
Mondrian - Geo Mondrian
 
Ruby On Rails Siddhesh
Ruby On Rails SiddheshRuby On Rails Siddhesh
Ruby On Rails Siddhesh
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application development
 
C# .NET Developer Portfolio
C# .NET Developer PortfolioC# .NET Developer Portfolio
C# .NET Developer Portfolio
 
Orchard
OrchardOrchard
Orchard
 
Oleksandr Krakovetskyi - Orchard CMS
Oleksandr Krakovetskyi - Orchard CMSOleksandr Krakovetskyi - Orchard CMS
Oleksandr Krakovetskyi - Orchard CMS
 
Developing Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web ApplicationDeveloping Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web Application
 
Data Access Tech Ed India
Data Access   Tech Ed IndiaData Access   Tech Ed India
Data Access Tech Ed India
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Overview of atg framework

  • 2. AGENDA What is E-Commerce & m-commerce Different frameworks/platforms providing e-commerce solutions Overview of Oracle ATG Different modules provided by Oracle ATG Commerce Nucleus Different Oracle ATG Components
  • 3. E-COMMERCE & M-COMMERCE Distributing, Buying, Selling and marketing products and services over internet through which transaction or terms of sale are performed electronically. Types of E-Commerce  B2B(Applies to businesses buying from and selling to each other. E.g. Walmart)  B2C(Applies to business that sells its products or services to consumers. E.g. flipkart)  C2B(Applies to any consumer that sells a product or service to a business. )  C2C(Applies to sites primarily offering goods and services to assist consumers interacting with each other. E.g. olx)
  • 4.
  • 5. CONCEPTUAL VIEW OF E- COMMERCE
  • 6. FRAMEWORKS PROVIDING E- COMMERCE SOLUTIONS Oracle ATG Commerce SAP Hybris IBM WCS Magneto
  • 7. ART TECHNOLOGY GROUP (ATG) Web Commerce Application Highly scalable and flexible component-based architecture. E-commerce software solutions & On-demand commerce optimization applications. Co-founded by Jeet Singh & Joseph Chung in 1991. ATG’s solutions provide merchandising, marketing, content personalization, automated recommendations. Acquired by Oracle in 2005. The latest version of Oracle ATG Commerce is 11, which includes the integration support of REST MVC framework, Endeca Experience Manager.
  • 8. ATG PLATFORM ATG platform is built on “layered” and “modular” approach. ATG Web Commerce applications implement a component development model based on Java Beans and JSP The core of ATG platform is it’s Application framework i.e. Dynamo Application Framework (DAF). DAF runs on top of the application server (like weblogic, websphere etc..) and provides essential facilities for application development and deployment.
  • 9. ARCHITECTURE OF ORACLE ATG BASED APPLICATION.
  • 10. APPLICATIONS IN ORACLE COMMERCE Commerce Personalization Merchandising Business Control Center Customer Service Center Endeca Commerce & Experience Manager
  • 12. DIFFERENT MODULES AVAILABLE IN ATG DPS  Personalization module  Used to create and maintain user profiles  User specific business rules DCS  Core Commerce Module  Provides the commerce capabilities like Shopping Cart, Order Purchase & Checkout.
  • 13. CONTD.. DSS  Extends the targeting capabilities of DPS  Scenarios are event driven  Designed to manage interaction between the site visitor and content DCC  Provides developer with the tool “ACC” B2BCommerce B2CCommerce DCS.CustomCatalogs Fulfillment DAS-UI
  • 14. KEY CONCEPTS Component Centric Model MVC2 framework Dependency Injection Modular approach Data Anywhere Architecture (Similar to ORM)
  • 15. COMPONENT DEVELOPMENT MODEL What is a Component? Examples of Component Architecture  Microsofts COM/DCOM  Java Beans  CORBA Benefits of Component Development Model  Code Reusability  Reduced Development time  Continuous, Incremental improvements
  • 16. COMPONENT IN ATG Any simple Java Class can be treated as a “Component”. To define a component in ATG, we need to create .properties file in the corresponding config directory. E.g. public class MyComponent{ } -> src/com/dev/MyComponent.java Create a .properties file in the corresponding config directory i.e. config/com/dev/MyComponent.properties The properties file contains the class name and the scope of the component (request/session/global)
  • 17. DYNAMO APPLICATION FRAMEWORK DAF is the core of Oracle ATG Web Commerce It runs on top of the application server It provides a Component Development Environment. Supplies essential facilities for application development and deployment  Nucleus  Repositories  Droplets  FormHandlers  Tag Libraries
  • 18. NUCLEUS Dynamo’s Open Object Framework Central registry for the java beans which contains our application level logic. Creates and configures the components Organizes them into a hierarchical namespace
  • 19. FORM HANDLER Specialized Nucleus Components Can be embedded into JSPs to do form validation and based on the result perform actions like submitting user data, forwarding the user to some other pages Form handler components have handleXXX() methods, which takes care of appropriate handler logic based on user action. Some of the mostly used OOTB form handlers are ProfileFormHandler, CartModifierFormHandler, CommitOrderFormHandler etc..
  • 20. DROPLET Specialized Nucleus components which are used to display dynamic content on the JSP pages Also known as “Dynamo Servlet Beans” Java Developers and Page designers can work independently and applications are easier to maintain OOTB droplets are ItemLookupDroplet, ForEach, Switch etc..
  • 21. REPOSITORIES Data Access layer that defines generic representation of data store Data Anywhere Architecture (DAA) provides a unified view of content and data Core of DAA is “Repository API” Using Repository API, we can employ a single approach to accessing different data types, including SQL databases, LDAP directories, content management systems and file systems
  • 22. HIGH LEVEL OVERVIEW OF DAA Advantages  Data Source Independence  Maximum Performance  Simplified transactional control  Fine-grained Access Control
  • 23. TAG LIBRARIES Earlier the presentation language used is “JHTML” JHTML has lots of custom tags to access Dynamo Components JSP became the defacto language for Presentation tier Introduced to access Nucleus components and render dynamic content from JSP files Example tags include <dsp:form>, <dsp:input>,<dsp:valueof>, <dsp:a>, <dsp:getvalueof> etc..
  • 24. DROPLETS To display the dynamic content on JSP pages using nucleus components. We can embed the output of a nucleus component using dsp tag libraries e.g. <dsp:droplet name=“/atg/dynamo/ForEach> <dsp:param name=“array” bean=“/com/sample/Student.subjects/> <dsp:oparam name=“output”> <dsp:valueof param=“element”/> </dsp:oparam>
  • 25. CONTD… Each droplet has a predefined set of parameters that control it’s behavior  Input  Output  Open Input parameters are passed into the droplet e.g. <dsp:param name=“array” bean=“/com/sample/Student.subjects/> Output parameters are set by the droplet e.g. <dsp:valueof param=“element”/> Open parameters specify code to execute at different stages of servlet processing Content that needs to be displayed before output is displayed using outputStart <dsp:oparam name=“outputStart”> …. </dsp:oparam> <dsp:oparam name=“output”>……</dsp:oparam> Content that needs to be displayed before output is displayed using
  • 26. CONTD.. Some of the OOTB droplets <dsp:droplet name=“atg/dynamo/droplet/foreach”> <dsp:droplet name=“atg/dynamo/droplet/switch”> <dsp:droplet name=“atg/dynamo/droplet/empty”> <dsp:droplet name=“atg/commerce/catalog/ProductLookup”>
  • 27. FORM HANDLERS Evaluates the form data before it is submitted, check for errors, and determine what action to take. The form input fields are associated with the properties of the form handler rather than the component that we want to modify E.g. <dsp:input type=“text” bean=“MyFormHandler.age”> Form Handler must include one or more handler methods, to handle the processing of the form.
  • 28. CONTD… Handler methods links form elements with Nucleus components Signature of the handler method Public boolean handleXXX(DynamoHttpServletRequest req, DynamoHttpServletResponse res){ ---- } Action based on return valueReturn Value Action false No further values are processed after the handler is called. Rest of the page is not served. true Normal processing of the form values continues Page specified by the form’s action attribute is served.
  • 29. CONTD... Sample Jsp file showing form data <dsp:form action=“SaveData”> <dsp:input type=“text” value=“jeet” bean=“MyFormHandler.firstName” /> <dsp:input type=“text” value=“singh” bean=“MyFormHandler.firstName” /> <dsp:input type=“submit” value=“Save” bean=“MyFormHandler.save”/> <dsp:input type=“cancel” value=“Reset” bean=“MyFormHandler.cancel” /> </dsp:form>
  • 30. CONTD… public class MyFormHandler extends GenericFormHandler{ private String firstName; private String lastName; public boolean handleSave(DynamoHttpServletRequest req, DynamoHttpServletResponse res){ return true/false;} public boolean handleCancel(DynamoHttpServletRequest req, DynamoHttpServletResponse res){ return true/false;} ….. ….. }
  • 31. CONTD… MyFormHandler.properties $class=MyFormHandler -> Fully Qualified Class Name $scope=request -> how the class instance will behave age=25 -> form handler property. We have to provide as name value pairs. subjects= java,atg,openapi prop1^=MyOtherFormHandler.prop1
  • 32. SCOPE OF THE COMPONENTS •Scope specifies how the nucleus component is used among different users. •We specify the scope of the component in .properties file •Available scopes • Global: shared among all the users (default) • Session: for each user session a separate instance will be provided • Request: for each active request a separate instance will be provided • Window: for each browse window a separate instance will be provided • Prototype: every time the component is resolved separate instance of the components will be provided