Presented by: SIF3: Provider Exercise - Java Joerg Huber SIF3 Provider Exercise: SchoolInfo Provider.

Slides:



Advertisements
Similar presentations
Michelle Johnston, Firebird Services Ltd
Advertisements

Presented by: AU Assets Evolution of the SIF Common Framework Joerg Huber.
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
The map and reduce functions in MapReduce are easy to test in isolation, which is a consequence of their functional style. For known inputs, they produce.
Introduction to Maven 2.0 An open source build tool for Enterprise Java projects Mahen Goonewardene.
OO Programming in Java Objectives for today: Overriding the toString() method Polymorphism & Dynamic Binding Interfaces Packages and Class Path.
Presented by: SIF 3.0 Concepts DSWG August 2013 Joerg Huber.
Presented by: SIF 3.0 REST Framework Melbourne Developer’s Workshop November 2013 Joerg Huber.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Presented by: SIF3: First Consumer - Java Joerg Huber SIF3 Consumer: Get Students Exercise.
Presented by: SIF 3.0 REST URL Structure Components of the SIF3 REST URL Joerg Huber.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Presented by: SIF3 REST Framework Joerg Huber Open-Source SIF3 Development Framework Developed by Systemic Pty Ltd Sponsored by.
Tomcat Configuration A Very, Very, Very Brief Overview.
Introduction to eValid Presentation Outline What is eValid? About eValid, Inc. eValid Features System Architecture eValid Functional Design Script Log.
Java Enterprise Edition Java Web Development Structure of a web project Introduction to Web Applications The first project Introduction to Java Web Development.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Arvind Gupta Professional Software Developer C#.net Portfolio  N-tier layered application  Defining a class object  Use of iComparable, iEnumerable.
Struts 2.0 an Overview ( )
Lecture 2 - Struts ENTERPRISE JAVA. 2 Contents  Servlet Deployment  Servlet Filters  Model View Controllers  Struts  Dependency Injection.
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
Dataface API Essentials Steve Hannah Web Lite Solutions Corp.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Eric Westfall – Indiana University Jeremy Hanson – Iowa State University Building Applications with the KNS.
Designing For Testability. Incorporate design features that facilitate testing Include features to: –Support test automation at all levels (unit, integration,
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Java: Chapter 1 Computer Systems Computer Programming II.
Presented by: SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
AUTOBUILD Build and Deployment Automation Solution.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
+ A Short Java RMI Tutorial Usman Saleem
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Presented by: SIF3: Providers Joerg Huber SIF3 Providers: Source of Truth.
1 Overview of the Application Hosting Environment Stefan Zasada University College London.
Chapter 3 Servlet Basics. 1.Recall the Servlet Role 2.Basic Servlet Structure 3.A simple servlet that generates plain text 4.A servlet that generates.
Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
Presented by: SIF3: Events Joerg Huber SIF3 Events & Live Demo.
ESA UNCLASSIFIED – For Official Use Workshop #23 Pasadena, USA 25 rd March 2015 Sam Cooper Common services update (part 2)
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
Software Development COMP220/COMP285 Seb Coope Introducing Ant These slides are mainly based on “Java Development with Ant” - E. Hatcher & S.Loughran.
Presented by: SIF 3.0 Environment Management Consumer Environments Direct Environments Java Joerg Huber.
XmlBlackBox The presentation Alexander Crea June the 15st 2010 The presentation Alexander Crea June the 15st 2010
Chapter 1 Introducing Ant. What is ant? Ant is a build tool  Automate the tasks of compiling code, running test, and packaging the results for redistribution.
Presented by: SIF 3.0 Environments, Zones & Contexts Environments, Zones, Contexts and their Relationship Joerg Huber.
Copyright © 2007 InSTech Joint Laboratory All rights reserved. 1 Consideration on Persistence of WiseMan FuDan-Hitachi InSTech (Innovative Software Technology)
Getting Started with the Open Services Gateway Initiative (OSGi) CNT 5517 Dr. Sumi Helal, Ph.D. Professor Computer & Information Science & Engineering.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Presented by: SIF3: Multi-Object CRUD Joerg Huber SIF3 Consumer: Multi-Object CRUD Exercise.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Extension Points:
Expense Tracking System Developed by: Ardhita Maharindra Muskan Regmi Nir Gurung Sudeep Karki Tikaprem Gurung Date: December 05 th, 2008.
Building KFS using KNS Presented by James SmithJustin Beltran University of ArizonaUniversity of California, Irvine.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
Convert generic gUSE Portal into a science gateway Akos Balasko.
Writing simple Java Web Services using Eclipse
Java Servlets.
Chapter 2: System Structures
SIF 3.0 Concepts Workshop Idea13 Joerg Huber.
Service Paths & Query By Example (QBE): Query Mechanism
SIF 3.x Concepts & Terms, xPress & RicOne API
The Model Layer What is Model?
SIF3: First Consumer - Java
Service Paths & Query By Example (QBE): Query Mechanism
SIF3: Provider Exercise - Java
SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
SIF3 REST Framework Open-Source SIF3 Development Framework
Presentation transcript:

Presented by: SIF3: Provider Exercise - Java Joerg Huber SIF3 Provider Exercise: SchoolInfo Provider

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 2 Setting the Scene  Decide on Data Model  Decide on SIF Object(s) – i.e. SchoolInfo  CRUD only  DIRECT Environment Environment Management Considerations  No Events  Immediate Request/Response

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 3 Data Model Classes (as with Consumer)  The SIF3 Framework has a library with the SIF AU 1.3 data model ( sifDataModel_au1.3.jar ). Generated based on SIF AU 1.3 XSD. Has methods to marshal/unmarshal to/from XML  Classes are named as the SIF Object: Single Student: StudentPersonalType Student List: StudentPersonalCollectionType Refer to “First Consumer” presentation for more details on Data Model Classes.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 4 Core Object Provider Classes The following is a list of core classes required for developing an Object Provider. Details will follow as part of the exercise.  BaseProvider (CRUD) or BaseEventProvider (CRUD & Events) Each SIF Object used in the final provider must extend one of these two classes. Forces a number of methods to be implemented  ProviderServletContext Initialises & frees up resources of a provider when webapp (provider) is started or shutdown. Already implemented. Developer does not need to do anything here (configured in web.xml)

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 5 Steps developing an Object Provider  For each SIF Object used in the provider write a separate class extending BaseProvider or BaseEventProvider  Implement abstract and/or interface methods => May want to look into StudentPersonalProvider  Link marshal/unmarshal with provider Ensures that SIF3 Framework produces correct XML Use DataModelUnmarshalFactory & DataModelMarshalFactory from sifDataModel_au1.3.jar!  Link SIF Object Class with each provider Implement getSingleObjectClassInfo and getMultiObjectClassInfo methods to return appropriate ModelObjectInfo (see demo code) Use predefined constants

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 6 Steps developing an Object Provider (cont.) Note: You can read some SchoolInfo objects from a file (refer to SIF3 Training Exercises - Java.docx – Exercise 5 for details)  CRUD Operations Attempt to implement createSingle()  Deal with “useAdvisory” parameter. Attempt to implement retrieve()  Deal with “paging” Null out other methods.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 7 Steps developing an Object Provider (cont.) Configure the following in the provider.properties file:  List each provider class as a comma separated list in the “provider.classes” property  Set the package name of the consumer classes in the “provider.basePackageName” property. As part of this training most of the above should be pre-set. Refer to Developer’s Guide for much more details on how to develop a provider.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: Provider Exercise 8 Run Object Provider  Deploy your Object Provider to your web- or application container. Deploy = Stop/Start your web- or application server. If you load schools from the supplied XML file you should see a log entry indicating 2 schools are loaded. If not check weather the property provider.school.file.location in the provider.properties file points to a valid location.  Within your IDE you should be able to run the DemoConsumer class. It is an executable. Comment out SchoolConsumer methods.  Observe the output on the command line…