Spring, Hibernate and Web Services 13 th September 2014.

Slides:



Advertisements
Similar presentations
Introduction to the Spring Framework
Advertisements

Apache Struts Technology
Introduction to the Spring Framework University of Kansas January 2009 This presentation and example application are available at
Next Generation Node (NGN) Technical Overview April 2007.
Introduction to Service-Oriented Architecture. Outline Definition Features Examples of SOA Web Service Standards Example Pros and Cons Integration with.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Pragmatic Application Building: Step by Step Jay Sissom Principal Systems Analyst Indiana University
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Systems Integration & Consulting June Copyright ® 2009 Ayenda Agenda Introduction to Systems Integration System Integration Challenges and Opportunities.
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
Session-01. Hibernate Framework ? Why we use Hibernate ?
The Spring Framework: A brief introduction to Inversion of Control James Brundege
Intro to Spring CJUG - January What is Spring? “The Spring framework provides central transaction control of various objects.” This means that any.
Using Third-Party Frameworks in Building Blocks™ David Ashman Principal Architect, Product Development.
The Spring Framework A quick overview. The Spring Framework 1. Spring principles: IoC 2. Spring principles: AOP 3. A handful of services 4. A MVC framework.
UNIT-V The MVC architecture and Struts Framework.
Spring Roo CS476 Aleksey Bukin Peter Lew. What is Roo? Productivity tool Allows for easy creation of Enterprise Java applications Runs alongside existing.
Hibernatification! Roadmap for Migrating from Plain Old SQL on JDBC to JPA on Hibernate Duke Banerjee Senior Developer, DrillingInfo.com.
JDBC Session 5 Tonight: Data Access Patterns 1.J2EE Architecture & Design Patterns 2.The Data Access Tier 3.Data Access Patterns –DataAccessObject (DAO)
2007 JavaOne SM Conference | Session BOF-4181 | BOF-4181 Migrating a Spring/Hibernate Application to Java Platform, Enterprise Edition (Java EE) 5 Adrian.
NetArchive Suite Workshop 2011 Technical Track - Code refactoring with the Spring Framework.
Spring Framework. Spring Overview Spring is an open source layered Java/J2EE application framework Created by Rod Johnson Based on book “Expert one-on-one.
Introduction to the Spring Framework By: Nigusse A. Duguma Kansas State university Department of Computer Science Nov 20, 2007.
Spring Overview, Application demo -Midhila Paineni 09/23/2011 Spring Overview, Application demo9/8/20151.
The Spring Framework Training Get to know Spring Framework Rohit Prabhakar
Traditional Web Based Application Structure Frameworks define how the application is designed, organised and deployed across various tiers.
Web services: Why and How OOPSLA 2001 F. Curbera, W.Nagy, S.Weerawarana Nclab, Jungsook Kim.
Slide heading: 28pt Arial Regular, light blue R204 | G204 | B255 Maximum length: 2 lines Slide body: 18pt Arial Regular, white Square bullet color: green.
95-843: Service Oriented Architecture 1 Master of Information System Management Service Oriented Architecture Lecture 10: Service Component Architecture.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
Spring core v3.x Prepared by: Nhan Le. History v3.0 Spring Expression Language Java based bean metadata v3.1 Cache Abstraction Bean Definition Profile.
第十四章 J2EE 入门 Introduction What is J2EE ?
Text 16 de mayo de 2009 Spring Framework Part I. Dependency Injection Buenos Aires, May 2009.
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
Spring Framework. Spring Overview Spring is an open source layered Java/J2EE application framework Created by Rod Johnson Based on book “Expert one-on-one.
Creative Commons Attribution- NonCommercial-ShareAlike 2.5 License Sakai Programmer's Café Sakai Montreal CRIM Workshop Introduction to Spring Framework,
Introduction to Web Dimitar Nenchev Ivan Nakov
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
A Presentation By V AIBHAV S AHARAN Web-enHanced Information Management COMS E6125.
Tuscany: a SOA framework Jeffrey Guo Accelrys, Inc.
Spring Framework. About spring Spring is the most popular application development framework for enterprise Java. Millions of developers around the world.
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
آرمان حسين‌زاده آذر  Access to data varies depending on the source of the data.  Access to persistent storage, such as to a database, varies greatly.
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
Enterprise Java Overview Panos Konstantinidis Java Developer JUG Leader & Java Champion
Java EE Patterns Dan Bugariu.  What is Java EE ?  What is a Pattern ?
Spring and DWR Frameworks for Rich Web Enterprise Application Thomas Wiradikusuma Presentation to the 20 th.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Kansas City Java User’s Group Jason W. Bedell July 12, 2006
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Overview of the Spring Framework Introducing.
Introduction – ORM, Helloworld Application
Web Services. Web Service: Simple definition : “ Service Offered On the Web “ Technically : “ A Web Service is a programmable application component that.
Text 16 de mayo de 2009 Spring Framework Part III. Portable Service Abstractions and Spring MVC Buenos Aires, June 2009.
Hibernate Java Persistence API. What is Persistence Persistence: The continued or prolonged existence of something. Most Applications Achieve Persistence.
The Holmes Platform and Applications
J2EE Platform Overview (Application Architecture)
J2EE Lecture 6: Spring – IoC and Dependency Injection
Spring Framework Power to the POJO.
Introduction to J2EE Architecture
Unit 6-Chapter 2 Struts.
By Ru Shen Department of Computer Science UAlbany, 2008
Intro to Spring CJUG - January 2013.
Inventory of Distributed Computing Concepts and Web services
Inventory of Distributed Computing Concepts
Service Oriented Architecture (SOA)
JavaServer Faces: The Fundamentals
Developing and testing enterprise Java applications
Presentation transcript:

Spring, Hibernate and Web Services 13 th September 2014

Software Framework Refers to set of libraries or classes, which are used in the creation of an application. An application framework provides a foundation for developing the application and alleviates from putting additional efforts for it. Techniques used in framework Configuration files Central Controller Presentation System

What does Spring offer? Dependency Injection Also known as IoC (Inversion of Control) Inversion of control takes the integration and configuration of the system out of the application, and instead performs dependency injection. Inversion of controldependency injection Aspect Oriented Programming Runtime injection-based Service Abstractions ORM, DAO, Web MVC etc. Allows access to these without knowing how they actually work Open source project on SourceForge founded by Rod Johnson & Jürgen Höller Apache license

What does Spring offer? Enable applications to be coded from POJOs Allow enterprise services to be applied to those POJOs in a declarative, non-invasive way POJOs can be made transactional without the need to know about transaction APIs Collaborating instances are injected using plain Java constructors or setter methods True POJOs are testable in isolation Decouples your application objects from their environment Switch to global transactions over JTA Export your business objects in different environments Switch between SLSB, web service etc.

What does Spring offer? Core Lightweight Container(The heart of Spring) Aspect-Oriented Programming (AOP) framework Modularizes behavior that would otherwise be scattered through different methods Decorates your POJOs with cross-cutting behavior in a transparent manner Container instantiates objects and injects dependencies on collaborating objects and configuration properties through Java methods Uses Hollywood Principle - “Don’t call me, I’ll call you”

Benefits Portability Your core business logic is implemented once and runs anywhere Leverage Your core code is decoupled from volatile infrastructure Consistency Common configuration strategy everywhere Productivity Test-driven development Don’t need to reinvent your own infrastructure

Struts Vs Spring - MVC Spring Struts A model-view-controller framework Made to simplify the writing and testing Fully integrates with the Spring dependency injection framework Open Source All other Spring features can also be used with other web frameworks such as Struts or JSF A model-view-controller framework Made to simplify the writing Open Source Difficult to set up RESTful web services No control on Model layer

Spring Modules Middle tier DAO implementations Presentation tier DAO interfaces Service objects / Business Facades RDBMS Domain objects JSP, JSF, Velocity, Jasper Reports… Remote exporters

Dependency Injection  Example: public class Department{ private Employee employee; public Department(Employee emp) { employee= emp; } Characteristics  Cons  You must create dependencies to pass along  Pros  Easy to understand  Testable  Flexible  Extensible  Enforces separation of interface from implementation  Code is simple and clear Spring is a framework for wiring up your entire application

What does hibernate offer? Open Source light-weight ORM solution Java Object/Relational Mapping, Maps JavaBeans (POJOs) to tables, Lets you avoid SQL Works with (almost) all relational Databases, Easy migration from one vendor database to another Hibernate generates the JDBC Code based on the underlying vendor database Support CRUD (Create, Read, Update and Delete) operations Very well matured and adopted by a large developer community

ORM – Hibernate Introduction Traditional Solutions JDBC/SQL code embedded in Class, EJB (J2EE) solution etc. More coding, container dependent etc. are the issues Best practice would be to keep the Persistence separate from classes

Webservice Introduction SOA is a software design principle and an architectural pattern for implementing loosely coupled, reusable and coarse grained services. You can implement SOA using any protocols such as HTTP, HTTPS, JMS. Messages can be in XML or Data Transfer Objects (DTOs). Web service is an implementation technology and one of the ways to implement SOA. Web services offer is the standards based and platform-independent service via HTTP, XML, SOAP, WSDL and UDDI, thus allowing interoperability between heterogeneous technologies such as J2EE and.NET

Webservice Introduction Web Services support loosely coupled connections. The loosely coupled applications reduce the cost of maintenance and increases re-usability. Web Services present a new form of middle-ware based on XML and HTTP. Web services are language and platform independent. Styles of Web Services used for application integration SOAP WS and RESTful Web Service

Webservice Integration

Q&A