Vous êtes sur la page 1sur 35

Developing ATG Applications Part 1

Using ATG Technology to Build Web Applications

Copyright 2007, Art Technology Group, Inc.

Student Introductions
Please introduce yourself to the class by

1-2

answering these questions: What's your name? Where do you work? What is your job? Have you worked with ATG already? If so, what have you done with it? How much experience do you have with Java and object-oriented design and development? How will your company be using ATG? Why are you taking this course?

Course Objectives
After completing this course, students will be able to
Implement JavaServer pages that use ATG

features

Configure and access SQL databases using

Repositories

Process forms using the out-of-the-box form

handlers or by creating custom form handlers interactions

Create scenarios that manage customer


Define customized user profile templates
1-3

Course Objectives (2)


Track information about user preferences and

behavior in a user profile

Deliver targeted content based on a users profile Create and integrate custom component classes for

additional application-specific functionality data

Create custom form handlers for your application

1-4

Tentative Agenda (1)


Day 1
Chapter 1: Getting Started Chapter 2: Using Components

Chapter 3: Dynamic Pages

Day 2
Chapter 4: Using ATG Repositories Chapter 5: SQL Repository Configuration

1-5

Tentative Agenda (2)


Day 3
Chapter 6: Repository Form Handlers Chapter 7: Relationship Management

Chapter 8: Extending the Profile Repository

Day 4
Chapter 9: Scenarios Chapter 10:Delivering Personalized Content Chapter 11: Developing Component Classes
1-6

Tentative Agenda (3)


Day 5
Chapter 12: Repository API Chapter 13: Custom Form Handlers

Chapter 14: Managing Transactions

1-7

Developing ATG Applications Part 1


Using ATG Technology to Build Web Applications
Chapter 1: Getting Started
Copyright 2007, Art Technology Group, Inc.

What is ATG? (1)


A platform for developing dynamic web

applications

A set of classes and tools An engine for components ATG is used by some of the largest companies

and sites in the world

ATG is fast, scalable, and based upon

Java/J2EE standards

1-9

What is ATG? (2)


A suite of integrated products to address customer

relationships over the full lifecycle


Reporting

Outreach

Site Analytics
Self Service

Acquire

Campaign Optimizer Merchandising Commerce

Response Analyze Management Knowledge 1-10

Service

Commerce Assist

ATG Products
web site
marketing console (BCC) customer care administrative console console (Workspace) application console (ACC)

Marketing Apps
Outreach Campaign Optimizer

Commerce Apps
Commerce B2B Commerce Merchandising Commerce Search Campaign Optimizer Commerce Assist Analytics

Customer Care Apps


Knowledge Self-service Response Management Click to Call/Chat Commerce Assist Outreach

App Development
Application Framework

ATG Platform
Adaptive Scenario Engine Business Control Center Search Ticketing Content Administration Customer Intelligence

1-11 all popular operating systems, app servers, databases

Core Concept: Component


A Component, built from a Java class, is the basic building block for Java all processing of information that flows between users and the Component website. Components perform functions such as: Data storage and retrieval Personalization with business rules e-Commerce business logic etc.
1-12

Core Concept: Repository


A Repository is the basic method of data access in ATG. It may manage Structured (relational) data
Repository

Documents

Multimedia data
Example repositories include: Profile repository Content repositories Commerce repositories

1-13

Core Concept: Profile


A Profile is information about a particular person visiting a Web site. The information may include: Name, address, etc. System environment Browsing behavior Application-specific attributes

Profile

1-14

Core Concept: Scenario

A scenario is a game plan that associates sequences of events with actions. Once triggered, actions may target specific individuals, groups of users, or all users. Actions may include things like Delivering personalized content Sending e-mail Displaying promotional information
1-15

Dynamusic.com
A fictional company that allows users to

download MP3s Revenue from monthly subscription fees, referral fees for album purchases from a retail site, advertising for concerts and venues

Course exercises will develop a subset of

Dynamusic's functionality

1-16

Instructor Demo: Dynamusic.com

1-17

ATG Developer Tools: Eclipse


Eclipse is an open source development

environment Very extensible through plug-ins

ATG provides powerful Eclipse plug-ins to - Create and assemble ATG applications - Build JSPs - Browse and edit components - Edit repository definitions
1-18

ATG Developer Tools: ACC


The ATG Control Center (ACC) is a GUI tool

that helps manage the creation and personalization of web content


Browse and edit component configurations and live values Build scenarios View and edit repository data

Use the ACC to

1-19

ATG Developer Tools: Server Admin


The ATG Dynamo Admin UI lets you manage

each ATG instance directly

Use the Admin UI to view and change

repository data, view live components, and browse session data


http://localhost:8080/dyn/admin

username: admin password: admin


1-20

ATG Developer Tools: Solid Database


ATG requires a SQL database to run
Comes packaged with Solid for development

and testing (not supported for production)

For course exercises, use the provided shortcut

C:\ATG\Training\DEV1\Dev1Solid

1-21

ATG File Organization


Installation directory <atgdir>, defaults to C:\ATG\ATG200x.x

Various ATG product modules

Application modules

ATG configuration
1-22

The home directory


Executable scripts

License files and server-wide configuration (properties) files

ATG named server instances


1-23

Creating an

ATG Application

1-24

ATG Application Overview


ATG Application Module J2EE Enterprise Application Web Application Web Application Web Application

JSPs JSPs JSPs Servlets Servlets Servlets Tag Libraries Tag Libraries Tag Libraries JavaBeans JavaBeans JavaBeans
1-25

Enterprise Enterprise JavaBean Enterprise JavaBean JavaBean

Creating an Application Module in Eclipse


File > New > Other

ATG Application Module

1-26

Module Dependencies
ATG applications often depend

on other modules which are started automatically when your module is started the module manifest file

Dependencies are declared in

<module-name>/META-INF/MANIFEST.MF

Manifest-Version: 1.0

ATG-Required:
1-27

DSS

Creating a J2EE Application

ATG Application Module J2EE Enterprise Application Web Application

1-28

Deploying and Running


ATG Applications

1-29

Deploying ATG Applications

ATG.ear

1. Assemble

2. Deploy

3. Run
1-30

run c atg

Application Assembly
Three choices for assembly

Command line: <atgdir>/home/bin/runAssembler Ant task: CreateUnpackedEarTask Wizard: ATG plug-in for Eclipse
Developer shortcut: startDynamoOnJBOSS

Convenience script to assemble, deploy and run the application in a single step startDynamoOnJBOSS -m Dynamusic
1-31

Running in Place
For testing and development, ATG applications

can be assembled "in place" All properties files, JSPs, classes, etc. are referenced in place in the ATG module

startDynamoOnJBOSS f run-in-place -m Dynamusic


ATG.ear

1-32

ATG Documentation
The ATG documentation set includes several manuals. Most useful to developers are
Programming Guide - A detailed description of

ATG programming concepts for developers within an ATG application

Page Developers Guide Developing JSPs Repository Guide A developer's guide to the

Data Anywhere Architecture

API Reference Javadoc descriptions of the

ATG classes

1-33

Summary
In this chapter, you learned about

The ATG product suite ATG Developer Tools ATG J2EE application modules Deploying and running an ATG application

1-34

Exercises
Create a new Dynamusic module and J2EE

application using Eclipse

Start the new module on JBoss View the ATG documentation set

1-35

Vous aimerez peut-être aussi