Title: Building Frameworks In Java: Component Development
1Building Frameworks In JavaComponent Development
Nick Meshes
2Schedule
- Break into 4 5 groups
- Match skilled Java programmers with new ones
- Message group may be optional
- Explanation of todays hands-on Presentation
- Overview of framework well build
- Work in groups
- Meet with each group for five minutes
3Schedule
- Check-in after 1 hour, Allot additional time as
needed - Merge code together and see the fruits of our
labor - Each group presents technology
- Leave and go about our lives
- Total Time 3 Hours or Less
4Break Up Into Five Teams
XML/JAXP
JDBC
Email/SMTP
Regular Expressions
5Explanation of Todays Hands-On Presentation
Its how the real world works!
- Youre given a project to work on.
- Once you complete the project
- Youre smarter
- Youve learned it better than someone just
telling you - Youve built character as well as experience
- After completing the project, well present what
we learned
6Overview of Framework Well Build
CAMPAIGN FULFILLMENT
A Tool For Getting the Right Information To The
Right People
- Back-End Engine for processing data and sending
information to people - XML-based
- Database Connectivity (MS Access in this version,
CSV in future) - Email-delivery capability (Postal mail and fax in
Version 2.0) - Web Interface to Campaign Fulfillment Engine
7Process User Interface
- User submits Job Request as an XML Document
8Process Delegation to Business Logic
- Servlet creates a Job Manager to handle the job
9Process Controller initiates Job Processing
- Job Manager creates a relationship to a XML
Document Manager and passes the document
XML Doc Manager
XML Doc
10Process Creation of Components from XML
- During operation, the XML Document Manager will
create appropriate component objects from the XML
Definition
11Process Data Retrieval
- Job Manager utilizes the XML Doc Manager and the
DS Manager to build a list of records
Record List
1 Record Field List
12Process Setup the Message Handler
- The XML Doc Manager creates a Message Manager,
- which holds the message to send and can replace
parameters in the message if needed.
13Process Setup the Delivery Mechanism
- The XML Document Manager creates a Delivery
Manager, which can send the message to your
intended audience.
14Process Campaign Fulfillment
- For each record to be sent, the Job Manager tells
the Message Manager to format the message and
tells the Delivery Manager to send it.
15Your Mission, Should You Choose To Accept It
- Servlet Group creates web interface using Tomcat
- XML Group creates objects from XML
- DB Group retrieves data from Access DB
- Message Group manages and builds the message
- Delivery Group sends email through JavaMail
But its not as hard as you might think!
16Work In Groups
XML Group
Message Group
Data Source Group
Email Group
Ask for Help as Necessary
17Set-up Information
- Create a folder under the C drive called
seminar (C\seminar) - Download the Java Building Frameworks
Resources into C\seminar - Extract the zip file into C\seminar
- Open a DOS window (Start button, then one of
below) - type cmd in a Run window and hit ENTER
- Programs ? Accessories ? Command Prompt
18Set-up Information
- In the handout is more information about
compiling, - testing, and the contents of the Seminar zip
file.
19Whats Going On?
Were merging!
It runs!
Time to Present!
20Group Presentations
XML Group
Data Source Group
Message Group
Email Group
21The Model is your Friend
22Resources
- Java Website http//java.sun.com
- Tomcat Website http//jakarta.apache.org/tomcat
- Contact Nick at nick_at_meshes.com