Presented by: SIF3: First Consumer - Java Joerg Huber SIF3 Consumer: Get Students Exercise.

Slides:



Advertisements
Similar presentations
Operating-System Structures
Advertisements

Presented by: AU Assets Evolution of the SIF Common Framework Joerg Huber.
Introduction to Maven 2.0 An open source build tool for Enterprise Java projects Mahen Goonewardene.
Presented by: SIF 3.0 Concepts DSWG August 2013 Joerg Huber.
Presented by: SIF 3.0 Environments, Zones & Contexts Melbourne Developer’s Workshop November 2013 Joerg Huber.
Presented by: SIF 3.0 REST Framework Melbourne Developer’s Workshop November 2013 Joerg Huber.
Apache Struts Technology
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. The Web Services Modeling Toolkit Mick Kerrigan.
PRESENTATION 3 Sri Raguraman CIS 895 Kansas State University.
Presented by: SIF 3.0 REST URL Structure Components of the SIF3 REST URL Joerg Huber.
UNIT-e Research & Development Microsoft Technology Day Stephen Cain (System Architect)
MC365 Application Servers: Servlets. Today We Will Cover: What a servlet is The HTTPServlet and some of its more important methods How to configure the.
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.
CSCI 639 Topics in Software Engineering Assignment #4 Fall 2006.
Session-02. Index. Jsp in Struts 2 Web.xml File in Struts 2.
Struts 2.0 an Overview ( )
Dataface API Essentials Steve Hannah Web Lite Solutions Corp.
Pc Naming Configuration 1.WEB REGISTER 2.FIXNAME 3.MCAFEE AGENT SETUP ITC Training: Session 2.
PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Remote Unit Testing Milestone III Alex Riordan Brian Pruitt-Goddard.
OBSERVATIONS & PRÉVISIONS CÔTIÈRES 3 rd SeaDataNet training course – Ostende – June 2008 NEMO reformatting tool v1 M. Fichaut.
Presented by: SIF3: Provider Exercise - Java Joerg Huber SIF3 Provider Exercise: SchoolInfo Provider.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
ANDROID CONTENT PROVIDERS Peter Liu School of ICT, Seneca College.
Presented by: SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
AUTOBUILD Build and Deployment Automation Solution.
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
Extending ArcGIS for Server
Design Patterns Part two. Structural Patterns Concerned with how classes and objects are composed to form larger structures Concerned with how classes.
Presented by: SIF3: Providers Joerg Huber SIF3 Providers: Source of Truth.
Exploring an Open Source Automation Framework Implementation.
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.
JDBC Java and Databases. RHS – SOC 2 JDBC JDBC – Java DataBase Connectivity An API (i.e. a set of classes and methods), for working with databases in.
Presented by: SIF3: Events Joerg Huber SIF3 Events & Live Demo.
Cheap N Fast Web Service Sandeep Anantharaman Mahim Lakhani.
Distribution and components. 2 What is the problem? Enterprise computing is Large scale & complex: It supports large scale and complex organisations Spanning.
Connect. Communicate. Collaborate PerfsonarUI plug-in tutorial Nina Jeliazkova ISTF, Bulgaria.
ESA UNCLASSIFIED – For Official Use Workshop #23 Pasadena, USA 25 rd March 2015 Sam Cooper Common services update (part 2)
Implementation of EIDE Gateway using ACES Callouts WECC DEWG EIDE Training.
PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University.
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
Presented by: SIF 3.0 Environments, Zones & Contexts Environments, Zones, Contexts and their Relationship Joerg Huber.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
G.Govi CERN/IT-DB 1 September 26, 2003 POOL Integration, Testing and Release Procedure Integration  Packages structure  External dependencies  Configuration.
Presented by: SIF3: Multi-Object CRUD Joerg Huber SIF3 Consumer: Multi-Object CRUD Exercise.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Extension Points:
Institute for the Protection and Security of the Citizen HAZAS – Hazard Assessment ECCAIRS Technical Course Provided by the Joint Research Centre - Ispra.
Chapter 3 Part II. 3.8 Placing a Class in a Separate File for Reusability.cpp file is known as a source-code file. Header files ◦ Separate files in which.
Building KFS using KNS Presented by James SmithJustin Beltran University of ArizonaUniversity of California, Irvine.
Graphical Data Engineering
Mobile Applications (Android Programming)
Names and Attributes Names are a key programming language feature
Viewbiquity HTML5 Tom Shafron Developer’s Blog CEO, Viewbiquity
Chapter 2: System Structures
SIF 3.0 Concepts Workshop Idea13 Joerg Huber.
Service Paths & Query By Example (QBE): Query Mechanism
Encapsulation & Visibility Modifiers
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
Implementation of EIDE Gateway using ACES Callouts
SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
SIF3 REST Framework Open-Source SIF3 Development Framework
Presentation transcript:

Presented by: SIF3: First Consumer - Java Joerg Huber SIF3 Consumer: Get Students Exercise

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 2 How to develop a Consumer  What is a Consumer  Initial Considerations  Data Model Classes  Consumer Classes  Steps developing a consumer Get Student & Get Students  Exercise Develop Basic Consumer and Run it… Ensure Demo Provider returns data

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 3 What is a Consumer  A Client in the traditional sense.  Can be standalone executable or part of a larger web- and/or mobile application.  It typically requests CRUD operations: Create, Read/Get, Update & Delete Objects (i.e. Students)  It can subscribe to Events if events are supported by the provider of data.  A consumer is not considered the “source of truth”, meaning CRUD requests might be rejected by the provider!

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 4 Initial Considerations  What Data Model to use (i.e. SIF AU 1.3)?  What SIF Objects do I need to deal with?  What CRUD request do I need to deal with?  Do I need to deal with SIF Events? Most likely only available in brokered environment Will be shown during this training course as part of a Live Demo.  Are delayed request/responses required? Most likely only available in brokered environment Outside the scope of this training

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 5 Data Model Classes  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  If another data model is required you can: Generate it using the data model’s XSD if available. Manually develop it. Get hold of 3 rd party library that encapsulates the data model. Ensure marshal/unmarshal to/from XML is available or you need to implement this.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 6 Core Consumer Classes The following is a list of core classes required for developing a consumer. Details will follow as part of the exercise.  ConsumerLoader initialise: Initialises a Consumer and allocates resources shutdown: Releases resources allocated with consumer.  AbstractConsumer (CRUD) or AbstractEventConsumer (CRUD & Events) Each SIF Object used in the final consumer must extend one of these two classes. Forces a number of methods to be implemented

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 7 Steps developing a consumer  For each SIF Object used in the consumer write a separate class extending AbstractConsumer or AbstractEventConsumer  Implement abstract and/or interface methods  Link marshal/unmarshal with consumer Ensures that SIF3 Framework produces correct XML Use DataModelUnmarshalFactory & DataModelMarshalFactory from sifDataModel_au1.3.jar!  Link SIF Object Class with each consumer Implement getSingleObjectClassInfo and getMultiObjectClassInfo methods to return appropriate ModelObjectInfo (see demo code) Use predefined constants

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 8 Steps developing a consumer (cont.) Configure the following in the consumer.properties file:  List each consumer class as a comma separated list in the “consumer.classes” property  Set the package name of the consumer classes in the “consumer.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 consumer.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 9 Exercise – StudentPersonal Consumer As part of this exercise we only use AbstractConsumer (we don’t do events)  Implement StudentPersonalConsumer in sif3demo.consumer package Note what class it extends! Note it only requires methods related to data model and mapping to internal model classes.  Implement DemoConsumer (executable) in sif3demo.service package: getStudent (get Single Students) getStudents(Get list of Students) Note where the ConsumerLoader methods are used. Also refer to javadoc of the SIF3 Framework for details about classes.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3: First Consumer 10 Exercise – Run DemoConsumer  Ensure your provider is running in your web- or application container. Ensure that the provider has loaded the students. At start-up you should see a log entry indicating 608 students are loaded. If not check weather the property provider.student.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.  Observe the output on the command line…