osgi lab for rtp websphere user group

Upload: ryan-boyles

Post on 09-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    1/14

    2009 IBM Corporation

    OSGi Hands On Lab with RAD forWebSphere Application Server

    IBM RTP Client Briefing CenterNovember 30, 2010

    Triangle WebSphere User Group

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    2/14

    2010 IBM Corporation2

    Source: If applicable, describe source origin

    November 30, 2010

    Your Lab Hosts Tonight

    Nichole Stewart, WebSphere System Test

    http://websphereusergroup.org/nstewart

    Lin Sun, WebSphere Development, Apache Aries

    [email protected]

    Ryan Boyles, WebSphere Technical Evangelist

    http://websphereusergroup.org/rab

    http://websphereusergroup.org/nstewarthttp://websphereusergroup.org/rabhttp://websphereusergroup.org/rabhttp://websphereusergroup.org/nstewart
  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    3/14

    2010 IBM Corporation3

    Deliver Innovative Applications Faster with WebSphere Application ServerFeature Packs to Jump Start Development

    Web 2.0EJB 3.0Web

    Services

    WAS V6.1 EJB 3.0 WebServices

    Web 2.0 CEA XML SCAOSGi Apps

    & JPA 2.0

    WAS V7

    Dynamic

    Scripting

    Adopt the latest technologies

    without disruptive upgrades

    No additional charge: included in

    WAS PPA subscription

    Reuse IBM open source

    contributions

    Refresh1Q10

    New3Q09

    New4Q09

    Refresh4Q09

    New2Q10

    New2Q10

    Modern

    Batch

    Beta3Q10

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    4/14

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    5/14

    2010 IBM Corporation5

    Source: Ian Robinson, Holly Cummins

    OSGi Benefits

    Deploying modules as OSGi bundles

    Simplifies reuse between applications

    Encourages (and enforces) modular design

    Provides versioning

    Enables dynamic module updates Dependency Injection framework

    Provides efficiency for large SOA systems

    dependencies injected

    publishes

    serviceconsumes

    service

    Module Blueprint scoped bya bundle (one per bundle).Multiple perModule-Context

    A static assembly andconfiguration of

    components (POJOs)

    Blueprint managed bundle

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    6/14

    2010 IBM Corporation6

    Comparing JEE applications to OSGi applications

    File extensions.

    (WAB is .jar)

    Metadata for

    Bundles.

    Both are ZIP

    format and can

    be manipulated

    by JAR cmd.

    WAB is

    WebSphere

    Application

    Bundle

    WAR is Web

    Application

    Archive

    Metadata.Classpath of

    Bundle

    dependencies.

    Versioning

    provided by

    Bundles.

    Both are Jarfiles and

    contain

    packages of

    Java classes.

    BundleJAR is JavaArchive

    File Extensions.

    Metadata.

    EBA contains

    no app code.

    Both use ZIP

    format and can

    be manipulated

    by JAR cmd.

    EBA is

    Enterprise

    Bundle Archive

    EAR is

    Enterprise

    Application

    Archive

    DifferencesLikenessesOSGi BundleJEE Archive

    See full text at http://scr.bi/hLI5a0

    http://scr.bi/hLI5a0http://scr.bi/hLI5a0
  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    7/14 2010 IBM Corporation7

    RAD V8

    OSGi App Devt Tool

    WAS v7 OSGi FeP

    Test Environment

    Eclipse

    WTP 3.6 PDE

    Graphical

    Application Editor

    Developer Productivity

    (e.g. content assist, validation, re-factoring)

    Graphical CreationWizards

    Creation / Import /Export Tools

    Tutorials and

    Documentation

    Publish and Run

    WAS v7 Server

    Support

    Free Eclipse Plugin for OSGi

    ApplicationsGraphical tools to develop OSGi applications and

    bundles

    Includes features that increase developer productivity

    Creates OSGi Applications for any Aries-based server

    runtime.

    Eclipse WTP 3.6 (Helios) required

    http://marketplace.eclipse.org/content/ibm-rational-

    development-tools-osgi-applications

    OSGi Application Development Tools

    Blueprint Graphical

    Editor

    Bundle Explorer

    SCA / OSGi

    Integration

    OSGi Application Support in RAD V8

    Provide integrated development and test of

    OSGi Applications on the WebSphere platform

    Integrated with Web Tools, JEE productivity tools, andother capabilities in RAD

    Supports deployment to WAS v7 OSGi FeP and

    includes the FeP in the WAS Test Environment

    SCA support for OSGi Applications

    Additional OSGi tools:

    Graphical and wiring editor for Blueprint

    Bundle Explorer

    Tools for WAS OSGi extensions / Value-

    add

    http://www-01.ibm.com/software/awdtools/developer

    /application/index.html

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    8/14 2010 IBM Corporation

    Lab: Blog Sample Featured App in Feature Pack

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    9/14 2010 IBM Corporation9

    Lab Downloads

    WebSphere Application Server for Developers 7.0 Download

    http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/

    WebSphere Feature Pack for OSGi and JPA2.0

    http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/index.

    RAD Standard Edition E 8.0 Download

    http://www.ibm.com/developerworks/downloads/r/rad/

    Extra: Apache Aries samples

    http://incubator.apache.org/aries/samples.html

    http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/index.htmlhttp://www.ibm.com/developerworks/downloads/r/rad/http://incubator.apache.org/aries/samples.htmlhttp://incubator.apache.org/aries/samples.htmlhttp://www.ibm.com/developerworks/downloads/r/rad/http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/index.htmlhttp://www.ibm.com/developerworks/downloads/ws/wasdevelopers/
  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    10/14 2010 IBM Corporation10

    Resources and References

    Apache Aries project for OSGi

    http://incubator.apache.org/aries/

    Enterprise OSGi in Action presentation

    http://2010.geecon.org/materials/presentations/2010_05_13/room_5/2010-geecon-

    WebSphere Emerge community

    http://bit.ly/WebSphereEmerge

    WebSphere Emerge blog

    http://websphereemerge.blogspot.com

    Triangle WebSphere User Group

    http://websphereusergroup.org/triangle

    http://incubator.apache.org/aries/http://2010.geecon.org/materials/presentations/2010_05_13/room_5/2010-geecon-cummins-aries.pdfhttp://bit.ly/WebSphereEmergehttp://websphereemerge.blogspot.com/http://websphereusergroup.org/trianglehttp://websphereusergroup.org/trianglehttp://websphereemerge.blogspot.com/http://bit.ly/WebSphereEmergehttp://2010.geecon.org/materials/presentations/2010_05_13/room_5/2010-geecon-cummins-aries.pdfhttp://incubator.apache.org/aries/
  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    11/14

    2009 IBM Corporation

    Backup

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    12/14

    2010 IBM Corporation12

    Apache OpenJPA 2.0

    WebSphere Application Server v7Feature Pack for OSGi Applications and JPA 2.0

    WebSphere Application Server v7

    OSGiB

    undle

    Repository

    Web Application

    OSGi

    Blueprint

    WebSphere

    eXtreme Scale

    Data Studio

    pureQuery

    Runtime

    WAS

    Datasource

    IBM DB2 and

    Informix Databases

    Simplified Component ModelBased on Apache Aries, implements the

    OSGi Blueprint specification for

    dependency injection simplicity, including

    unit test of business components outside

    the server, but governed by OSGi standards

    and integrated with proven Java EE

    technologies.

    Efficient Application

    Deployment and ManagementDeploy OSGi applications and Web

    applications as OSGi bundles in the OBR

    increasing reuse, modularity, and decreasing

    application memory and disk footprint.

    Persistence Layer ProductivityThe IBM JPA 2.0 implementation, based on

    Apache OpenJPA, includes important

    standards based features to improve developer

    time to value plus additional performance

    APIs.

    IBM Portfolio Integration to

    Optimize PerformanceEnhanced integration with IBM

    WebSphere eXtreme Scale and DataStudio pureQuery Runtime for enhanced

    performance, monitoring and easier

    diagnostics.

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    13/14

    2010 IBM Corporation13

    Highlights of OSGi application Support in WAS Feature Pack

    OSGi Release 4 Version 4.2 Blueprint component model for declarative

    assembly, and simplified unit test

    Extensions to the Blueprint component model for declarative transactions,

    container-managed JPA, and resource reference configuration

    Isolated enterprise applications composed of multiple, versioned bundles

    with dynamic life cycle

    Integrated bundle repository and ability to configure the location of externalrepositories to support application provisioning

    Module sharing between applications

    Module versioning within and between applications

    Integrated administration of application bundles

    Federation of lookup mechanisms between local JNDI and the OSGi

    service registry

    Support for deploying existing Web Application Archives (WARs) as OSGi

    Web application bundles

  • 8/8/2019 OSGi Lab for RTP WebSphere User Group

    14/14

    2010 IBM Corporation14

    JPA 2.0 Overview

    Object-relational persistence is a key developer requirement for many

    application developer scenarios. JPA is the Java EE standard for object-

    relational persistence and was first introduced as part of Java EE 5. As part of

    the Java EE 6 standards, JPA 2.0 (JSR-317) updates object-relational

    capabilities with important developer APIs and enhancements.

    Highlights of the JPA 2.0 implementation delivered in the feature pack include: Java EE 6, JPA 2.0 (Java Specification Request 317) specification compliant implementation

    Important new JPA 2.0 standards-based features to help improve developer time to value

    Achieve new levels of application performance with WebSphere Application Server V7

    Query language (JPQL) extensions and improvements

    Programmatic control of database access optimizations - fetch groups, fetch plans, and access intents

    Enhanced integration with WebSphere eXtreme Scale in order to help improve data access

    performance