Tuscany/Spring web application integration

Slides:



Advertisements
Similar presentations
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Advertisements

11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
OpusCollege and Spring-DM. OSGi based web applications – three strategies OSGi container embedded in another container: OSGi Bridge Server (OBS)  e.g.
Spring 3.0 MVC - Introduction By, Srinivas Reddy.S
Intermediate Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Intermediate Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Tu sca ny 1 Simplifying Service Oriented Applications with The Apache Tuscany project Jeremy Boynes 27 July 2006.
The 21th Century Repairman Agenda Introduction J2EE - Interface Subcontractor Manager Subcontractor Demonstration.
E-business Architecture.NET vs J2EE Judith Molka-Danielsen Feb.27, 2004.
Spring Dynamic Modules. Startlocation: Documentation: /1.2.1/reference/html/
Spring Basic Bean wiring
Struts 2.0 an Overview ( )
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
Intermediate Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Spring. Spring Overview Spring Container Concepts Spring and AOP Spring and Data Access Managing Transactions and Resources Remoting and Accessing Enterprise.
1 Designing and Deploying an SCA system architecture using DeployWare (FDF) Online Store Demo Damien Fournier, Philippe Merle INRIA ADAM team / SCOrWare.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Adaptability for flexible mobile service provision in 3G and beyond Nikos Houssos
95-843: Service Oriented Architecture 1 Master of Information System Management Service Oriented Architecture Lecture 10: Service Component Architecture.
OpusCollege and the use of Spring and iBatis
® 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,
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
J2EE Overview Web Programming CSCI J2EE multi-tier architecture Servlet: Java class loaded into Web server JSP page: enhanced HTML page that is.
Creative Commons Attribution- NonCommercial-ShareAlike 2.5 License Sakai Programmer's Café Sakai Montreal CRIM Workshop Introduction to Spring Framework,
Tu sca ny 1 Extending The Tuscany Java SCA Runtime 21 August 2006.
Introduction to Web Dimitar Nenchev Ivan Nakov
Slide 1 Extending Tuscany Raymond Feng Apache Tuscany committer.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 35 – Overview of Java Web Programming Webpage:
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Tu sca ny 1 The Tuscany Java SCA Runtime 20 August 2006.
SDMX-HD - OpenMRS Integration Overview of the Intended Use Case OpenMRS SDMX-HD Module SDMX-HD Java API Design Use.
Struts Framework Anna Paščenko. What is Struts?  An open source framework for building Java web applications.
Tuscany Runtime Architecture. Contents Overview An example Bootstrap kernel Process of composite application.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Views Rendering custom views.
Tu sca ny 1 The Tuscany Project in the Apache Incubator and The Service Component Architecture Jeremy Boynes Simon Nash 28 June 2006.
Intermediate Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Sakai WebApp Structure
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
Slide 1 Extending Tuscany Raymond Feng Apache Tuscany committer.
Java Enterprise Edition Programming Page 1 of 9Configuring Servlets Web Application Context Name  In multiple web applications, a “context name” is used.
Spring and DWR Frameworks for Rich Web Enterprise Application Thomas Wiradikusuma Presentation to the 20 th.
Slide 1 Extending Tuscany Raymond Feng Apache Tuscany committer.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
J2EE T ECHNOLOGIES These are the technologies required to build large scale distributed applications, can be divided into – Component Technologies eg.
Service Component Architecture Policy TC Issue 33 Capabilities.
SCA and Java n SCA provides support for multiple Java-based component implementation types l Java POJOs (implementation.java) l Spring Beans (implementation.spring)
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Presentation Title Subtitle DSpace UI Prototype 7 Spring, Angular.js, and the DSpace REST API.
CAS 3 Introduction and Overview. CAS2 is simple to understand 6 servlets and fewer than 10 JSPs 6 servlets and fewer than 10 JSPs auth package – where.
Collaboration diagrams. Deployment diagrams. Lesson 4.
Developing with the Framework Zach A. Thomas, Texas State University
Java Web Development with NetBeans IDE -- Kai Qian Chapter 9 Case Study.
1 Introduction to Service Component Architecture Feature Pack for WebSphere Application Server & SCA Tooling in RAD Mike Edwards and Sara Mitchell - IBM.
Apache Tuscany 2.x Domain/Node Raymond Feng
Apache Tuscany 2.x Domain/Node
Tuscany Java SCA Architecture
EADD – Introduction Chapter -1.
Sakai WebApp Structure
Apache Tuscany Demo BigBank Example
Corso di “Sviluppo di applicazioni Web”
JavaServer Faces: The Fundamentals
Component-based Applications
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Struts BY: Tejashri Udavant..
Presentation transcript:

Tuscany/Spring web application integration Raymond Feng

Overview Spring has a convenient way for a web application to initialize the ApplicationContext when the web application starts. http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#context-create Tuscany creates a Node for a web application when it starts. If the deployable composites contain SCA spring components, Tuscany tries to build an ApplicationContext too. We should allow the two containers to coexist and collaborate within the web application. The ApplicationContext created by Tuscany should be able to see the “global” WebApplicationContext. This way, we don’t have to load the Spring context twice and duplicate the definitions.

Runtime architecture ServletContext Tuscany Component (implementation.spring) Tuscany TuscanyContextListener/TuscanyServletFilter Spring ApplicationContext ServletContext Spring ContextLoaderListener Spring WebApplicationContext XML

A sample web application SCA composite HelloworldClientComponent (implementation.spring) DateServiceComponent (implementation.java) Tuscany TuscanyContextListener/TuscanyServletFilter Spring ApplicationContext (HelloworldClientBean) ServletContext Spring WebApplicationContext (HelloworldBean) Spring ContextLoaderListener helloworld-client-context.xml helloworld-context.xml

Spring MVC support http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html

Servlet-scoped Tuscany Node TuyscanyContextListener/TuscanyServletFilter (Middleware-tier) Tuscany Node Spring Web Application Context parent Spring MVC Servlet Tuscany Node TuyscanyDispatcherServlet extends DispatcherServlet (Spring MVC) Spring MVC Application Context

Sample application https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/implementation-spring/helloworld-spring-webapp/ <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.apache.tuscany.sca.host.webapp.spring.TuscanyDispatcherServlet</servlet-class> <!-- Spring MVC DispatcherServlet config --> <init-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/spring/appServlet/servlet-context.xml </param-value> </init-param> <!-- SCA contribution --> <param-name>contribution</param-name> <param-value> /WEB-INF/sca </param-value> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <url-pattern>/mvc/*</url-pattern> </servlet-mapping>

Sample composite WebApp Servlet helloworld-client-context.xml Bean helloworld-context.xml Helloworld Bean Helloworld Client Component (SCA Spring) DateService Component (SCA Java) WebApp Greeting Component (SCA Spring) Servlet servlet-context.xml Message Service Bean Spring MVC Beans sca-context.xml Greeting Service Bean