SlideShare a Scribd company logo
Creating Large-Scale Software
Platforms with OSGi and
an Extension Point Model
Introducing Eclipse Content Repository

Bogdan Stefanescu, Lead Architect at Nuxeo

2011-03-23




                                             1
Nuxeo, Who Are We?
●
    Vendor of an open source software platform in the
    feld of Enterprise Content Management
●
    Love to create great software, fond of modularity,
    started to use OSGi 4 years ago to create server-side
    enterprise software
●
    10 years old, 500+ customers, 5000+ installations
●
    Sells support & maintenance subscription and
    added value software provided as a service
●
    Dual HQ Paris & Boston, offces in San Francisco
●
    http://www.nuxeo.com

                                                            2
Nuxeo Enterprise Platform
●
    The software we develop is an Open Source ECM
    platform known as Nuxeo Enterprise Platform (EP)
    ●
        A platform because you can use Nuxeo EP to develop
        your own customized ECM application
    ●
        We also provide turn-key pre-built applications based
        on Nuxeo EP already customized for different scopes:
        –   Document Management (DM)
        –   Digital Asset Management (DAM)
        –   Case Management Framework (CMF)
        –   or simply Content Application Platform (CAP) for developers



                                                                          3
4
Why Are We Here Today?

●
    To share our experience in building an enterprise
    application using OSGi and an extension point
    model
●
    To discuss and participate into spreading
    Equinox on the server side as well
●
    To grab your feedback and ideas!
●
    And, why not... to do some marketing too ;-)



                                                        5
What Have We Achieved For Now?
●
    A complex software platform made of
    ●
        186+ bundles, 215+ extension points
●
    Very fexible thanks to extension points
    ●
        Easy to contribute new services
    ●
        Easy to customize the default application (including UI
        and business logic)
●
    Running virtually everywhere
    ●
        JBoss AS - as an EAR application
    ●
        Tomcat - as a WAR application
    ●
        Equinox - as an OSGi application (and Virgo very soon)

                                                                  6
A Bit of History...
●
    We have been developing this ECM platform for 8
    years
    ●
        We started in Python
    ●
        5 years ago we switched to Java
●
    We needed a great model suitable for
    ●
        Modularity – split functionality in modules
    ●
        Flexibility – be able to easily confgure the application
●
    Constraints (requested by customers)
    ●
        Must deploy as an EAR or WAR application

                                                                   7
Choosing the Framework
●
    What were the choices?
    ●
        Java SE – nothing proposed
        –   No bundle life cycle, no modularity, no extension system
    ●
        Java EE – not modular at all
        –   All is packaged as one big application (EAR or WAR)
        –   To update or add a feature you need to recompile the entire
            application
    ●
        OSGi – great specifcation – love at frst sight
        –   But not compatible with J2EE
        –   No real OSGi enterprise framework implementations at that
            moment

                                                                          8
Let's Give OSGi a Try...
●
    OSGi was best suited for our dreams… but...
●
    How to achieve fexibility?
    ●
        Eclipse already had the answer: extension points
        –   Thanks Eclipse!
●
    How to integrate with J2EE Application Servers?
    ●
        J2EE applications are monolithic – there is no notion
        of modularity inside an application; the application is
        the unit
    ●
        But our application is supposed to be a platform
        made from tens or hundreds of units!

                                                                  9
An Extension Point Model ...
●
    So Eclipse already provided an extension point
    model – which is very good but ...
    ●
        It is based on EXSD descriptors
    ●
        Diffcult to manage EXSD fles outside PDE IDE
    ●
        PDE is very related to Eclipse plugin development
    ●
        PDE was not friendly with server side development
        –   Remember we are in 2006
    ●
        PDE was not friendly with other build systems
        –   We were using Maven as our build system



                                                            10
Nuxeo Extension Point Model
●
    So we decided to achieve something similar but
    in a more fexible way:
    ●
        No intermediate object model between services and
        contributed extensions
    ●
        Write your extension class and map it to XML using
        Java annotations
    ●
        Very easy to write for developers
    ●
        No specifc IDE needed to code extension points.
    ●
        Write a Java class, put the right annotations and the
        extension XML will be correctly injected into the Java
        object
                                                                 11
Extension Example
    XML Extension   Extension Class




                                      12
J2EE Integration
●
    Main problem: different ClassLoader model
    ●
        In J2EE an EAR application is the deployment unit
        and use a fat ClassLoader
    ●
        In OSGi an application is made of multiple units (i.e.
        bundles) each one with its own ClassLoader
●
    Second problem: static confguration
    ●
        In J2EE the application is confgured as a single block
        using an application.xml and web.xml fle
    ●
        In OSGi we can have fragments that can dynamically
        add confguration

                                                                 13
Class Loading Problems
●
    Running as an EAR application:
    ●
        Using a home-made OSGi Adapter to load bundles
        when the EAR application starts
    ●
        Bundles life cycle is preserved
    ●
        A fat class loader model is used
        –   All classes are visible to all bundles
●
    Running as an OSGi application:
    ●
        Main problem caused by third party libraries using
        Class.forName and the Thread Context ClassLoader
        –   Using Eclipse-BuddyPolicy when no other solution is
            possible
                                                                  14
Confguration Fragments – 1
●
    On J2EE confguration is monolithic
    ●
        To declare servlets you should know in advance what
        are the servlets provided by different bundles
●
    Using templates for J2EE confguration fles
    ●
        Dynamically generate these fles at application startup
        from the confguration contributed by bundles
●
    Able to package EAR applications that can adapt
    themselves to the confguration provided by
    application bundles
    ●
        No need of having different product packagings for
        different confgurations
                                                                 15
Confguration Fragments – 2
   conf guration fragment
      i                     web.xml template. ID: web




                                                        16
J2EE Features Added to OSGi
●
    Full OSGi integration of JAAS – for the
    authentication system
●
    Full JTA (transactions) support through Apache
    Geronimo
●
    Full JCA (resource adapters and pooling) support
    through Apache Geronimo
●
    In-memory JNDI server
●
    Future plans to integrate the work done in the
    Gemini project (and also support Virgo)

                                                       17
Where Are We Going?
●
    Contribute the core of Nuxeo EP to Eclipse
    ●
        ECR (Enterprise Content Repository) project is
        in the proposal phase
    ●
        https://github.com/nuxeo/org.eclipse.ecr
●
    Port all major Nuxeo EP services as ECR plugins
    ●
        For now only the core functionality is included
        in ECR
●
    Help us provide the frst OSGi-based ECM
    platform based on the ECR project!

                                                          18
Questions?
             Start Hacking ECR:
  https://github.com/nuxeo/org.eclipse.ecr
                Get Involved:
             ECR Proposal Forum

               Read more:
          Eclipse ECR Proposal
    Nuxeo EP Reference Documentation

             Contact me/us:
Bogdan Stefanescu - bstefanescu@nuxeo.com
          http://www.nuxeo.com

                                             19

More Related Content

What's hot (19)

PDF
JVM Languages Support in Eclipse - Monkey-patching the JDT for fun and profit?
Miles Sabin
 
PDF
Ad106 - XPages Just Keep Getting Better
ddrschiw
 
PPTX
Comparison of Programming Platforms
Anup Hariharan Nair
 
PPTX
Java Modularity with OSGi
Ilya Rybak
 
PDF
Eclipsecon 2010 - Scala Support in Eclipse
Miles Sabin
 
PPTX
Modular Java
Martin Toshev
 
PDF
Modules all the way down: OSGi and the Java Platform Module System
Tim Ellison
 
PPTX
JSX
Kazuho Oku
 
PDF
The OpenEuropa Initiative
Nuvole
 
PDF
Multiplatform Apps with Spring, Kotlin, and RSocket
VMware Tanzu
 
PDF
Ad103 - Have it Your Way: Extending IBM Lotus Domino Designer
ddrschiw
 
PDF
Java.il - Confessions of a java developer that fell in love with the groovy l...
Victor Trakhtenberg
 
PDF
Amplexor Drupal for the Enterprise seminar - evaluating Drupal for the Enterp...
Amplexor
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
ZIP
Practical OSGi
Sten Roger Sandvik
 
PPTX
Osgi platform
Yuriy Shapovalov
 
PPTX
JSX Optimizer
Kazuho Oku
 
PDF
JSX - developing a statically-typed programming language for the Web
Kazuho Oku
 
PDF
Benefits of OSGi in Practise
David Bosschaert
 
JVM Languages Support in Eclipse - Monkey-patching the JDT for fun and profit?
Miles Sabin
 
Ad106 - XPages Just Keep Getting Better
ddrschiw
 
Comparison of Programming Platforms
Anup Hariharan Nair
 
Java Modularity with OSGi
Ilya Rybak
 
Eclipsecon 2010 - Scala Support in Eclipse
Miles Sabin
 
Modular Java
Martin Toshev
 
Modules all the way down: OSGi and the Java Platform Module System
Tim Ellison
 
The OpenEuropa Initiative
Nuvole
 
Multiplatform Apps with Spring, Kotlin, and RSocket
VMware Tanzu
 
Ad103 - Have it Your Way: Extending IBM Lotus Domino Designer
ddrschiw
 
Java.il - Confessions of a java developer that fell in love with the groovy l...
Victor Trakhtenberg
 
Amplexor Drupal for the Enterprise seminar - evaluating Drupal for the Enterp...
Amplexor
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Practical OSGi
Sten Roger Sandvik
 
Osgi platform
Yuriy Shapovalov
 
JSX Optimizer
Kazuho Oku
 
JSX - developing a statically-typed programming language for the Web
Kazuho Oku
 
Benefits of OSGi in Practise
David Bosschaert
 

Viewers also liked (20)

PPTX
[EN] Enterprise Information Management | Keynote Dr. Ulrich Kampffmeyer | Ope...
PROJECT CONSULT Unternehmensberatung Dr. Ulrich Kampffmeyer GmbH
 
PPTX
Portfolio Server 11: Personalized DAM
Extensis
 
PDF
Hoarding, Searching and Effective DAM with Extensis Portfolio Server
Extensis
 
PPTX
ArchivesSpace-Archivematica-DSpace Workflow Integration Project Introduction ...
mikeum
 
PDF
Carrefour New Media Campaign (ADV 420)
topolin7
 
PDF
Optimizing Your Digital Content for Global, Mobile and Social Users
The Next SEM
 
PDF
Nuxeo Webinar: Getting Started with your DAM Application
Nuxeo
 
PDF
Islandora and Omeka: Building U of T Digital Collections & Exhibits
University of Toronto Libraries - Information Technology Services
 
PDF
Building GSD&M’s Digital Asset Management Solution
Nuxeo
 
PDF
Taking Control of Brand Assets
Extensis
 
PDF
eZ Openmagazine: Automating multi-channel content creation for your digital f...
Gabriele Francescotto
 
PDF
Sm west 2010-microsoft-workshop
Prashant Ohal
 
PPTX
Digital Asset Management Forum Chicago 2011
Extensis
 
PPTX
Good Enough: Finding what works for processing born-digital archives at the B...
mikeum
 
PDF
[Nuxeo World 2013] DID YOU SAY DAM? DIGITAL ASSET MANAGEMENT WITH THE NUXEO P...
Nuxeo
 
PDF
What do you mean I need digital preservation? I've got DAM!
Kara Van Malssen
 
PDF
What do you mean we need digital preservation? We have a repository!
Kara Van Malssen
 
PPTX
Processing at the University of Michigan Bentley Historical Library
mikeum
 
PDF
UBC Library's Digital Preservation Strategy
UBC Library
 
PPTX
ArchivesSpace-Archivematica-DSpace Workflow Integration Project Update (March...
mikeum
 
[EN] Enterprise Information Management | Keynote Dr. Ulrich Kampffmeyer | Ope...
PROJECT CONSULT Unternehmensberatung Dr. Ulrich Kampffmeyer GmbH
 
Portfolio Server 11: Personalized DAM
Extensis
 
Hoarding, Searching and Effective DAM with Extensis Portfolio Server
Extensis
 
ArchivesSpace-Archivematica-DSpace Workflow Integration Project Introduction ...
mikeum
 
Carrefour New Media Campaign (ADV 420)
topolin7
 
Optimizing Your Digital Content for Global, Mobile and Social Users
The Next SEM
 
Nuxeo Webinar: Getting Started with your DAM Application
Nuxeo
 
Islandora and Omeka: Building U of T Digital Collections & Exhibits
University of Toronto Libraries - Information Technology Services
 
Building GSD&M’s Digital Asset Management Solution
Nuxeo
 
Taking Control of Brand Assets
Extensis
 
eZ Openmagazine: Automating multi-channel content creation for your digital f...
Gabriele Francescotto
 
Sm west 2010-microsoft-workshop
Prashant Ohal
 
Digital Asset Management Forum Chicago 2011
Extensis
 
Good Enough: Finding what works for processing born-digital archives at the B...
mikeum
 
[Nuxeo World 2013] DID YOU SAY DAM? DIGITAL ASSET MANAGEMENT WITH THE NUXEO P...
Nuxeo
 
What do you mean I need digital preservation? I've got DAM!
Kara Van Malssen
 
What do you mean we need digital preservation? We have a repository!
Kara Van Malssen
 
Processing at the University of Michigan Bentley Historical Library
mikeum
 
UBC Library's Digital Preservation Strategy
UBC Library
 
ArchivesSpace-Archivematica-DSpace Workflow Integration Project Update (March...
mikeum
 
Ad

Similar to Creating Large Scale Software Platforms with OSGi and an Extension Point Model (EclipseCon) (20)

KEY
A Platform Approach to Enterprise Content Management with Eclipse Apricot, CM...
Nuxeo
 
KEY
Lessons learned Building Nuxeo EP - Component-based, open source ECM platform
Nuxeo
 
PPTX
EclipseCON2012 - Enterprise OSGi for Earthlings: Meet Eclipse Libra
Naci Dai
 
KEY
Introduction to EclipseRT (JAX 2010)
Chris Aniszczyk
 
PDF
JavaOne 2012, OSGi for the Earthlings: Meet Eclipse Libra
Murat Yener
 
PDF
Modular Java EE in the Cloud
Bert Ertman
 
PDF
Enterprise OSGi at eBay
Tony Ng
 
PDF
Calling All Modularity Solutions: A Comparative Study from eBay
Tony Ng
 
PDF
Calling all modularity solutions
Sangjin Lee
 
PDF
OSGi tech session
Bram de Kruijff
 
PPT
OSGi For Java Infrastructures [5th IndicThreads Conference On Java 2010, Pune...
IndicThreads
 
PDF
OSGi In Anger - Tara Simpson
mfrancis
 
PDF
OSGi and Java EE: A Hybrid Approach to Enterprise Java Application Development
Sanjeeb Sahoo
 
PDF
Eclipse_Building_Blocks
Rahul Shukla
 
PDF
Create *real* modular Java applications - a brief introduction -
Jeffrey Groneberg
 
PDF
JavaEE6
Roger Xia
 
PDF
OSGi at eBay: JavaOne 2010
Sangjin Lee
 
PDF
Eclipse & java based modeling platforms for smart phone
IAEME Publication
 
DOC
Next-Generation Enterprise Application Development with SpringSource dm Serve...
Aditya Jha
 
PDF
OSGi Technology, Eclipse and Convergence - Jeff McAffer, IBM
mfrancis
 
A Platform Approach to Enterprise Content Management with Eclipse Apricot, CM...
Nuxeo
 
Lessons learned Building Nuxeo EP - Component-based, open source ECM platform
Nuxeo
 
EclipseCON2012 - Enterprise OSGi for Earthlings: Meet Eclipse Libra
Naci Dai
 
Introduction to EclipseRT (JAX 2010)
Chris Aniszczyk
 
JavaOne 2012, OSGi for the Earthlings: Meet Eclipse Libra
Murat Yener
 
Modular Java EE in the Cloud
Bert Ertman
 
Enterprise OSGi at eBay
Tony Ng
 
Calling All Modularity Solutions: A Comparative Study from eBay
Tony Ng
 
Calling all modularity solutions
Sangjin Lee
 
OSGi tech session
Bram de Kruijff
 
OSGi For Java Infrastructures [5th IndicThreads Conference On Java 2010, Pune...
IndicThreads
 
OSGi In Anger - Tara Simpson
mfrancis
 
OSGi and Java EE: A Hybrid Approach to Enterprise Java Application Development
Sanjeeb Sahoo
 
Eclipse_Building_Blocks
Rahul Shukla
 
Create *real* modular Java applications - a brief introduction -
Jeffrey Groneberg
 
JavaEE6
Roger Xia
 
OSGi at eBay: JavaOne 2010
Sangjin Lee
 
Eclipse & java based modeling platforms for smart phone
IAEME Publication
 
Next-Generation Enterprise Application Development with SpringSource dm Serve...
Aditya Jha
 
OSGi Technology, Eclipse and Convergence - Jeff McAffer, IBM
mfrancis
 
Ad

More from Nuxeo (20)

PDF
Own the Digital Shelf Strategies Food and Beverage Companies
Nuxeo
 
PDF
How DAM Librarians Can Get Ready for the Uncertain Future
Nuxeo
 
PDF
How Insurers Fueled Transformation During a Pandemic
Nuxeo
 
PDF
Manage your Content at Scale with MongoDB and Nuxeo
Nuxeo
 
PDF
Accelerate the Digital Supply Chain From Idea to Support
Nuxeo
 
PDF
Where are you in the DAM Continuum
Nuxeo
 
PDF
Customer Experience in 2021
Nuxeo
 
PPTX
L’IA personnalisée, clé d’une gestion de l’information innovante
Nuxeo
 
PDF
Gérer ses contenus avec MongoDB et Nuxeo
Nuxeo
 
PPTX
Le DAM en 2021 : Tendances, points clés et critères d'évaluation
Nuxeo
 
PPTX
Enabling Digital Transformation Amidst a Global Pandemic | Low-Code, Cloud, A...
Nuxeo
 
PDF
Elevate your Customer's Experience and Stay Ahead of the Competition
Nuxeo
 
PDF
Driving Brand Loyalty Through Superior Customer Experience
Nuxeo
 
PDF
Drive Enterprise Speed and Scale with A Cloud-Native DAM
Nuxeo
 
PPTX
The Big Picture: the Role of Video, Photography, and Content in Enhancing the...
Nuxeo
 
PDF
How Creatives Are Getting Creative in 2020 and Beyond
Nuxeo
 
PPTX
Digitalisation : Améliorez la collaboration et l’expérience client grâce au DAM
Nuxeo
 
PDF
Reimagine Your Claims Process with Future-Proof Technologies
Nuxeo
 
PPTX
Comment le Centre Hospitalier Laborit dématérialise ses processus administratifs
Nuxeo
 
PDF
Accelerating the Packaging Design Process with Artificial Intelligence
Nuxeo
 
Own the Digital Shelf Strategies Food and Beverage Companies
Nuxeo
 
How DAM Librarians Can Get Ready for the Uncertain Future
Nuxeo
 
How Insurers Fueled Transformation During a Pandemic
Nuxeo
 
Manage your Content at Scale with MongoDB and Nuxeo
Nuxeo
 
Accelerate the Digital Supply Chain From Idea to Support
Nuxeo
 
Where are you in the DAM Continuum
Nuxeo
 
Customer Experience in 2021
Nuxeo
 
L’IA personnalisée, clé d’une gestion de l’information innovante
Nuxeo
 
Gérer ses contenus avec MongoDB et Nuxeo
Nuxeo
 
Le DAM en 2021 : Tendances, points clés et critères d'évaluation
Nuxeo
 
Enabling Digital Transformation Amidst a Global Pandemic | Low-Code, Cloud, A...
Nuxeo
 
Elevate your Customer's Experience and Stay Ahead of the Competition
Nuxeo
 
Driving Brand Loyalty Through Superior Customer Experience
Nuxeo
 
Drive Enterprise Speed and Scale with A Cloud-Native DAM
Nuxeo
 
The Big Picture: the Role of Video, Photography, and Content in Enhancing the...
Nuxeo
 
How Creatives Are Getting Creative in 2020 and Beyond
Nuxeo
 
Digitalisation : Améliorez la collaboration et l’expérience client grâce au DAM
Nuxeo
 
Reimagine Your Claims Process with Future-Proof Technologies
Nuxeo
 
Comment le Centre Hospitalier Laborit dématérialise ses processus administratifs
Nuxeo
 
Accelerating the Packaging Design Process with Artificial Intelligence
Nuxeo
 

Recently uploaded (20)

PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Survival Models: Proper Scoring Rule and Stochastic Optimization with Competi...
Paris Women in Machine Learning and Data Science
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Software Development Company Keene Systems, Inc (1).pdf
Custom Software Development Company | Keene Systems, Inc.
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Home Cleaning App Development Services.pdf
V3cube
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Linux schedulers for fun and profit with SchedKit
Alessio Biancalana
 
PDF
[GDGoC FPTU] Spring 2025 Summary Slidess
minhtrietgect
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Survival Models: Proper Scoring Rule and Stochastic Optimization with Competi...
Paris Women in Machine Learning and Data Science
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Software Development Company Keene Systems, Inc (1).pdf
Custom Software Development Company | Keene Systems, Inc.
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Home Cleaning App Development Services.pdf
V3cube
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Linux schedulers for fun and profit with SchedKit
Alessio Biancalana
 
[GDGoC FPTU] Spring 2025 Summary Slidess
minhtrietgect
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 

Creating Large Scale Software Platforms with OSGi and an Extension Point Model (EclipseCon)

  • 1. Creating Large-Scale Software Platforms with OSGi and an Extension Point Model Introducing Eclipse Content Repository Bogdan Stefanescu, Lead Architect at Nuxeo 2011-03-23 1
  • 2. Nuxeo, Who Are We? ● Vendor of an open source software platform in the feld of Enterprise Content Management ● Love to create great software, fond of modularity, started to use OSGi 4 years ago to create server-side enterprise software ● 10 years old, 500+ customers, 5000+ installations ● Sells support & maintenance subscription and added value software provided as a service ● Dual HQ Paris & Boston, offces in San Francisco ● http://www.nuxeo.com 2
  • 3. Nuxeo Enterprise Platform ● The software we develop is an Open Source ECM platform known as Nuxeo Enterprise Platform (EP) ● A platform because you can use Nuxeo EP to develop your own customized ECM application ● We also provide turn-key pre-built applications based on Nuxeo EP already customized for different scopes: – Document Management (DM) – Digital Asset Management (DAM) – Case Management Framework (CMF) – or simply Content Application Platform (CAP) for developers 3
  • 4. 4
  • 5. Why Are We Here Today? ● To share our experience in building an enterprise application using OSGi and an extension point model ● To discuss and participate into spreading Equinox on the server side as well ● To grab your feedback and ideas! ● And, why not... to do some marketing too ;-) 5
  • 6. What Have We Achieved For Now? ● A complex software platform made of ● 186+ bundles, 215+ extension points ● Very fexible thanks to extension points ● Easy to contribute new services ● Easy to customize the default application (including UI and business logic) ● Running virtually everywhere ● JBoss AS - as an EAR application ● Tomcat - as a WAR application ● Equinox - as an OSGi application (and Virgo very soon) 6
  • 7. A Bit of History... ● We have been developing this ECM platform for 8 years ● We started in Python ● 5 years ago we switched to Java ● We needed a great model suitable for ● Modularity – split functionality in modules ● Flexibility – be able to easily confgure the application ● Constraints (requested by customers) ● Must deploy as an EAR or WAR application 7
  • 8. Choosing the Framework ● What were the choices? ● Java SE – nothing proposed – No bundle life cycle, no modularity, no extension system ● Java EE – not modular at all – All is packaged as one big application (EAR or WAR) – To update or add a feature you need to recompile the entire application ● OSGi – great specifcation – love at frst sight – But not compatible with J2EE – No real OSGi enterprise framework implementations at that moment 8
  • 9. Let's Give OSGi a Try... ● OSGi was best suited for our dreams… but... ● How to achieve fexibility? ● Eclipse already had the answer: extension points – Thanks Eclipse! ● How to integrate with J2EE Application Servers? ● J2EE applications are monolithic – there is no notion of modularity inside an application; the application is the unit ● But our application is supposed to be a platform made from tens or hundreds of units! 9
  • 10. An Extension Point Model ... ● So Eclipse already provided an extension point model – which is very good but ... ● It is based on EXSD descriptors ● Diffcult to manage EXSD fles outside PDE IDE ● PDE is very related to Eclipse plugin development ● PDE was not friendly with server side development – Remember we are in 2006 ● PDE was not friendly with other build systems – We were using Maven as our build system 10
  • 11. Nuxeo Extension Point Model ● So we decided to achieve something similar but in a more fexible way: ● No intermediate object model between services and contributed extensions ● Write your extension class and map it to XML using Java annotations ● Very easy to write for developers ● No specifc IDE needed to code extension points. ● Write a Java class, put the right annotations and the extension XML will be correctly injected into the Java object 11
  • 12. Extension Example XML Extension Extension Class 12
  • 13. J2EE Integration ● Main problem: different ClassLoader model ● In J2EE an EAR application is the deployment unit and use a fat ClassLoader ● In OSGi an application is made of multiple units (i.e. bundles) each one with its own ClassLoader ● Second problem: static confguration ● In J2EE the application is confgured as a single block using an application.xml and web.xml fle ● In OSGi we can have fragments that can dynamically add confguration 13
  • 14. Class Loading Problems ● Running as an EAR application: ● Using a home-made OSGi Adapter to load bundles when the EAR application starts ● Bundles life cycle is preserved ● A fat class loader model is used – All classes are visible to all bundles ● Running as an OSGi application: ● Main problem caused by third party libraries using Class.forName and the Thread Context ClassLoader – Using Eclipse-BuddyPolicy when no other solution is possible 14
  • 15. Confguration Fragments – 1 ● On J2EE confguration is monolithic ● To declare servlets you should know in advance what are the servlets provided by different bundles ● Using templates for J2EE confguration fles ● Dynamically generate these fles at application startup from the confguration contributed by bundles ● Able to package EAR applications that can adapt themselves to the confguration provided by application bundles ● No need of having different product packagings for different confgurations 15
  • 16. Confguration Fragments – 2 conf guration fragment i web.xml template. ID: web 16
  • 17. J2EE Features Added to OSGi ● Full OSGi integration of JAAS – for the authentication system ● Full JTA (transactions) support through Apache Geronimo ● Full JCA (resource adapters and pooling) support through Apache Geronimo ● In-memory JNDI server ● Future plans to integrate the work done in the Gemini project (and also support Virgo) 17
  • 18. Where Are We Going? ● Contribute the core of Nuxeo EP to Eclipse ● ECR (Enterprise Content Repository) project is in the proposal phase ● https://github.com/nuxeo/org.eclipse.ecr ● Port all major Nuxeo EP services as ECR plugins ● For now only the core functionality is included in ECR ● Help us provide the frst OSGi-based ECM platform based on the ECR project! 18
  • 19. Questions? Start Hacking ECR: https://github.com/nuxeo/org.eclipse.ecr Get Involved: ECR Proposal Forum Read more: Eclipse ECR Proposal Nuxeo EP Reference Documentation Contact me/us: Bogdan Stefanescu - [email protected] http://www.nuxeo.com 19