SlideShare une entreprise Scribd logo
1  sur  58
Télécharger pour lire hors ligne
<Insert Picture Here>




OSGi & Java EE in GlassFish
Arun Gupta, Java EE & GlassFish Guy
blogs.sun.com/arungupta, @arungupta
The following/preceding is intended to outline our
general product direction. It is intended for
information purposes only, and may not be
incorporated into any contract. It is not a
commitment to deliver any material, code, or
functionality, and should not be relied upon in
making purchasing decisions.
The development, release, and timing of any
features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.



                                                     2
3
4
5
Generally complex ...
• 13 assembly missions
• 16 pressurized modules
• 35k cubic feet
• 400 metric tons ~ 400K kg ~ 882K lbs
• 173 – 286 miles above Earth
• Average speed: 17,227 mph
• 15.7 orbits/day
• Estimated cost: $157 billion


                                         6
7
The OSGi Alliance is a worldwide
consortium of technology innovators
that advances a proven and mature
process to assure interoperability of
applications and services based on
its component integration platform.


                                    8
OSGi Alliance provides ...

• Specifications
• Reference Implementation
• Test Suites
• Certifications




                               9
What is OSGi Specification ?

• Delivered by OSGi Alliance
  • Originally for embedded devices, set top boxes, network
• Architecture for modular application development
 in Java
  • Breaks applications into “modules” or “bundles”
• Can install, uninstall, start, and stop each bundle
 dynamically without restarting container
  • Multiple versions are supported
• Dependencies explicitly defined with clear
 boundaries

                                                         10
“JAR Hell”

• JAR is a build-time and deploy-time
 concept, not run-time
  • Based on the ZIP file format
• No metadata to indicate dependencies
• Multiple versions of JARs cannot be
  loaded
• All “public” classes are public
  • Access modifiers are for packages, not JAR



                                                 11
OSGi Layers

                Service



               Life Cycle



                Module



         Execution Environment


                                 12
OSGi Bundle – Just a JAR File!
                                 Export-Package
                                 Import-Package
 Java Classes, Static Files, …   Bundle-ClassPath
           (bundle private)            ...


  META-INF/MANIFEST.MF
                                  Persistent
           OSGI-OPT
      (docs, source code, ...)

                                    Atomic


                                                  13
Bundle is identified by ...

• Bundle Identifier
  • Unique for the lifetime
  • getBundleId()
• Bundle Location
  • Unique location of the bundle
  • getLocation()
• Bundle Symbolic Name and Version
  • Globally unique identifier
  • getSymbolicName(), getVersion()




                                      14
Java Classes, Static Files, ...    Service

 META-INF/MANIFEST.MF
              ...
        Export-Package
              ...
                                                     Client

                            Java Classes, Static Files, ...

                             META-INF/MANIFEST.MF
                                          ...
                                    Import-Package
                                          ...


                                                              15
Interaction between layers
          register / unregister
               get / unget         Service
                                       manage

               start / stop
                                  Life Cycle
 Bundle
 Bundle




                                       install
                                       uninstall
               classload
                                   Module


               execute
                                     EE


                                                   16
Bundle State Diagram

    update
    refresh                   install


                         INSTALLED
                                                STARTING
               update                      rt
                           resolve      sta
               refresh

                         RESOLVED                ACTIVE

                  uninstall                         stop

                                                STOPPING



Each bundle installation is
new
                                                           17
OSGi Containers




    http://stackoverflow.com/questions/560794/what-osgi-container-do-you-recommend


                                                                                     18
What is GlassFish ?
• GlassFish is an open source community
• Delivers Java EE Reference Implementation
 • GlassFish Server Open Source Edition - glassfish.org
 • Oracle GlassFish Server - oracle.com/goto/glassfish
• Tooling: NetBeans, Eclipse, IntelliJ
• GlassFish 3.1 – currently developed
 • Modular, Embeddable, Extensible
 • High Availability, Clustering, Centralized Administration




                                                               19
GlassFish Distributions
Distribution                  License      Features

GlassFish Open Source         CDDL &       • Java EE 6 Compatibility
Edition 3.0                   GPLv2        • No Clustering
                                           • Clustering planned in 3.1
                                           • mod_jk for load balancing

GlassFish Open Source         CDDL &       • Java EE 5 Compatibility
Edition 2.1.1                 GPLv2        • In memory replication
                                           • mod_loadbalancer
Oracle GlassFish Server 3.0   Commercial   • GlassFish Open Source Edition 3.0
                                           • GlassFish Server Control            Clustering
                                           • Clustering planned in 3.1            Coming
                                                                                   Soon!
Oracle GlassFish Server       Commercial   • GlassFish Open Source Edition
2.1.1                                        2.1.1
                                           • Enterprise Manager
                                           • HADB




                                                                                         20
GlassFish Roadmap Detail




  21
©2010 Oracle Corporation
OSGi in GlassFish
• GlassFish runs on top of OSGi
• Felix is default, also runs on Equinox &
  Knopflerfish
   • Runs in an existing shell
   • 200+ bundles in v3
• All GlassFish modules are OSGi bundles
• No OSGi APIs are used in GlassFish
   • HK2 provides abstraction layer

http://blogs.sun.com/arungupta/entry/totd_103_glassfish_v3_with
http://blogs.sun.com/arungupta/entry/totd_127_embedding_glassfish_in


                                                                       22
GlassFish: Modular Platform
   REST                                OpenMQ          WebSpace Server
                   Scripting                                                 OpenESB             OpenSSO
Web Services                            JMS                Portal


   Web                               Connection             Java                               Web Services
                       JSF                                                 EJB Container

                       Application Container
 Container                          Pooling (JCA)        Persistence                             Interop



         Management Console                   Update Center                     Management CLI



      Naming                               Grizzly Framework                                Monitoring/
                        Injection
      Service Config          Deploy
                        Manager
                                            Security           Monitor Configuration
                                                                              Cluster      Serviceability/
                                                                                             Logging

                                          GlassFish V3 Core
    Transaction          Security         (Module Subsystem)
      Service            Service                                        Deployment           Clustering




                                                OSGi
                                                Java SE

                                                                                                             23
GlassFish v3 Runtime with OSGi


 GlassFish V3 modules
                                Random OSGi Bundle
(OSGi + extra metadata)


                          Service        OSGi
   HK2 Service layer
                          Mapper     Service Layer




              OSGi Bundle Management




                                                     24
Benefits of OSGi for GlassFish
• Demands and enforces stronger modularity
• Enables custom tailored App server
• Lazy loading based on usage patterns
• Open for all JVM based technologies
  • Native deployment of JRuby-on-Rails application
• Successfully maintained quick startup
• Available to GlassFish developers and
 users


                                                      25
Create an OSGi Bundle – Maven

• Create a Maven project
• Implement “BundleActivator”
• Update “pom.xml”
   • Change packaging to “bundle”
   • Add dependencies on OSGI APIs
   • Use “maven-bundle-plugin” to package
• Build the bundle


http://blogs.sun.com/arungupta/entry/totd_36_deploy_osgi_bundles

                                                                   26
Create an OSGi bundle – NetBeans




http://blogs.sun.com/arungupta/entry/totd_125_creating_an_osgi

                                                                 27
Create an OSGi bundle – NetBeans




http://blogs.sun.com/arungupta/entry/totd_125_creating_an_osgi

                                                                 28
Create an OSGi bundle – Eclipse




http://blogs.sun.com/arungupta/entry/totd_126_creating_an_osgi

                                                                 29
OSGi Bundles in GlassFish
• asadmin deploy –type osgi
• “cp”/“rm”
    glassfish/domains/domain1/autodeploy/bundles
•   telnet localhost 6666
•   Apache Felix Web Console
•   REST Console bundle
•   Perl-based shell (Osgish)
•   VisualVM OSGi Plugin
•   Supports OBR
    • Discover and deploy dependencies together
http://blogs.sun.com/arungupta/entry/totd_118_managing_osgi_bundles



                                                                      30
31
Dynamic Discovery of OSGi service

                                                                          OSGi
  Export-Package        API                                              Service
                                                                         Registry

  Import-Package
                        Impl
  Bundle-Activator

                                                   Service
  Import-Package                                   Trackerasdsadasdsd
                                                              cker
                       Client                      Service Tra
  Bundle-Activator

                                                               Filters
http://blogs.sun.com/arungupta/entry/totd_131_dynamic_osgi_services


                                                                                    32
Why OSGi in Enterprise Apps ?

• Improved modularity
  •   Reusable bundles
  •   Dependencies are more visible
  •   Better isolation / Cleaner class loading model
  •   Better version control
  •   Faster deployment cycle
• Better tools for deployment
• Observable bundle life cycle
• Service Tracking
• Criteria-based service selection


                                                       33
Why Java EE in Enterprise Apps ?

• Better API (JPA, JTA, JAXB, JNDI)
• Better component model (Servlet, EJB, JAX-RS)
• Better frameworks (JSF, CDI)
• Ease-of-use (Annotations, Convention-over-
  configuration)
• Platform provided integrated infrastructure
  services
  • Transaction, Security, Persistence, Remoting, ...
• Many more reasons ...



                                                        34
35
OSGi Enterprise Expert Group

 The OSGi Enterprise Expert Group
   (EEG) is chartered to define the
      technical requirements and
specifications to tailor and extend the
 OSGi Service Platform to address
   information technology software
  infrastructure use cases found in
    enterprise business scenarios.
            http://www.osgi.org/EEG/HomePage


                                               36
Current Status

• Released OSGi Service Platform Enterprise
  Specification 4.2 in 2010
• Open Source Efforts
 • GlassFish
 • Project Aries
 • Eclipse Gemini




                                          37
Hybrid Applications

 “A hybrid application is an OSGi
   bundle as well as a Java EE
  archive and hence has both an
OSGi bundle context and Java EE
    context at runtime and can
 leverage capabilities of both the
            platforms.”

                                     38
Role of GlassFish

• Provides a runtime for Hybrid Applications
• Implements Java EE related OSGi services
  and standards
• Don't have to assemble the bits
• OSGi is no longer under the cover
 • Raises visibility from GlassFish developers to users




                                                      39
OSGi EEG Focus
• Scaling, including multi-container and multi-process
  environments
• Distributed and/or federated service model for
  • Multiple Service Platforms
  • External, heterogeneous systems
• Requirements for extensions to the OSGi
  publish/f nd/bind service model
          i
• Enterprise-class life cycle and conf guration
                                     i
  management
• Integration of established Java EE technology into
  OSGi


                                                         40
Why Hybrid Apps ?




       Best of both worlds!!!
Why do you want to learn new APIs ?




                                 41
Role of GlassFish

• Provides a runtime for Hybrid Applications
• Implements Java EE related OSGi services
  and standards
• Don't have to assemble the bits
• OSGi is no longer under the cover
 • Raises visibility from GlassFish developers to users




                                                      42
OSGi Compendium Specs in GlassFish

• OSGi/Web Application (rfc #66)
• OSGi/JPA (rfc #143)
• OSGi/JDBC (rfc #122)
• OSGi/JTA (rfc #98)
• OSGi/JNDI (rfc #142)
• OSGi/HTTP Service




                                      43
OSGi/Web Application (rfc #66)

• Web Application Bundle (WAB)
  • WAR + OSGi + Web-ContextPath Header
  • Can use all enterprise APIs include JPA with lazy loading
  • Sample manifest:
    Manifest-Version: 1.0
    Import-Package: javax.servlet.http; javax.persistence
    Bundle-ClassPath: WEB-INF/classes/,WEB-INF/lib/entities.jar
    Bundle-Version: 1.0
    Bundle-ManifestVersion: 2
    Web-ContextPath: /hello
    Bundle-SymbolicName: test.hellowab

• Wrapped WAR Support
  • webbundle: URL scheme


                                                                  44
OSGi Declarative Services

• Complications of Publish/Find/Bind
  • Long startup time
  • Memory footprint
  • Complex service programming model
• OSGi services in Java EE
    @Resource(mappedName=”osgiName”)
    SomeOSGiService osgiService;
  • JNDI Lookup
  • Portable, no OSGi dependencies in application
• Exported APIs visible to Java EE apps



                                                    45
OSGi Declarative Service
                                     <scr:component enabled="true" name="hello-service">
                                        <implementation class="org.glassfish.samples.osgi.helloservice.impl.HelloImpl"/>
                                        <service servicefactory="false">
              OSGI-INF/                  <provide interface="org.glassfish.samples.osgi.helloservice.api.HelloService"/>
                                        </service>
       serviceComponents.xml            <property name="service.pid" value="hello-service"/>
                                     </scr:component>



Export-Package   API                                                                    Servlet Client
                                       ...
                                       import   org.glassfish.samples.osgi.helloservice.api.HelloService;


           HelloImpl                   @WebServlet(urlPatterns={"/HelloClient"})
                                       public class HelloClient extends HttpServlet {

                                        @Resource(mappedName="hello-service")
                                        HelloService helloService;

                                        @Resource(mappedName="howdy-service")
         HowdyImpl                      HelloService howdyService;

                                       ...




   http://blogs.sun.com/arungupta/entry/totd_124_osgi_declarative_services


                                                                                                                           46
OSGi Declarative Services


 import org.apache.felix.scr.annotations.Component;
 import org.apache.felix.scr.annotations.Service;
 import org.glassfish.samples.osgi.helloservice.api.HelloService;         maven-
                                                                          bundle-
 @Component(name="hello-service")                                          plugin
 @Service
 public class HelloImpl implements HelloService {                         maven-
   public String sayHello(String name) {                                   scr-
     return "Hello " + name;                                              plugin
   }
 }




http://blogs.sun.com/arungupta/entry/totd_124_osgi_declarative_services


                                                                                    47
JAX-WS & OSGi




          Artifacts   WSDL
                             JAX-WS
JAX-WS                       Endpoint
 Client                          Business
                                  Method




                                            48
JAX-WS & OSGi

                    Artifacts                                   WSDL
                                                                       JAX-WS
   JAX-WS                                                              Endpoint
    Client                                                                 Business
                                                                           Delegate
                                                                            Method
                                            Query
                                            Registry


                            OSGi                                        OSGi
                                                  Register
                           Service
                                                  Service
                                                                       Bundle
                           Registry
                                                                           Business
                                                                            Method
http://blogs.sun.com/arungupta/entry/totd_130_invoking_a_osgi


                                                                                      49
OSGi & EJB

• Export EJB as OSGi services
• Pure OSGi component can discover/invoke
  the service
• Advantages
  • Declarative security, Transaction, Context dependency,
    Injection, … are available to non-EE components
• TX context from pure OSGi bundle
 propagates to invoked EJB
  • Ditto for security and persistence context




                                                             50
OSGi & EJB

                 Client                                            OSGi Service Registry


                               login
Export-Package
                  API         register




  Export-EJB     Impl
                                         Container-managed
                                                JPA

               LoadData


   http://weblogs.java.net/blog/ss141213/archive/2010/03/30/ejb-osgi-service-demo-eclipsecon


                                                                                               51
JavaOne 2010 Hands-on Lab (S313522)



      OSGi Client                          OSGi Service




         WAB                                    EJB


http://blogs.sun.com/arungupta/entry/screencast_32_osgi_enabled_java

                                                                       52
OSGi & JMS


Export-EJB: None   Consumer


                                               Destination
                                            ConnectionFactory
                                               Messages#


 BundleActivator   Producer

                                                                    OSGi Config Admin
  http://www.java.net/blog/ss141213/archive/2010/04/21/osgijmsmdb-example


                                                                                        53
Extending GlassFish v3
    Using Spring dm Container


                                                            • Simple Spring bean
                                                              implementing the
                                                              service
                                                            • Invoke the service
                                                              from a servlet using
                                                              standard @Resource
                                                              injection
                                                            • Single runtime for
                                                              both Spring and full
                                                              Java EE
http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4


                                                                                   54
Upcoming
  OSGi & Java EE Integration in 3.1

• With JPA
  • Entities + persistence.xml bundled as OSGi bundle
• EE resources like JDBC, JavaMail, or JMS resource
  available in OSGi service registry
• With CDI& JAX-RS




                                                        55
Upcoming
     OSGi & Java EE Integration in 3.1

  • GlassFish can be embedded in OSGi and non-OSGi
    runtime
  • OSGi Administration
     • Apache Gogo Shell – Scripting environment (RFC #147)
        • Scripting, Piping, Variables, ...
        • Closures, Dynamic method invocations, ...
     • OSGi Web Console – Web-front end
  • OBR Integration – Deployment can resolve
    dependencies via OBR



http://wiki.glassfish.java.net/attach/V3FunctionalSpecs/GFv3.1-OSGi-onepager-v0.2.txt


                                                                                        56
References


• glassfish.org
• blogs.sun.com/theaquarium
• oracle.com/goto/glassfish
• glassfish.org/roadmap
• Follow @glassfish
• OSGi/GlassFish Dashboard:
 wikis.sun.com/display/GlassFish/OSGI



                                        57
<Insert Picture Here>




OSGi & Java EE in GlassFish
Arun Gupta, Java EE & GlassFish Guy
blogs.sun.com/arungupta, @arungupta

Contenu connexe

Tendances

The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012Arun Gupta
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudArun Gupta
 
GlassFish REST Administration Backend
GlassFish REST Administration BackendGlassFish REST Administration Backend
GlassFish REST Administration BackendArun Gupta
 
GlassFish Community Update @ JavaOne 2011
GlassFish Community Update @ JavaOne 2011GlassFish Community Update @ JavaOne 2011
GlassFish Community Update @ JavaOne 2011Arun Gupta
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012Arun Gupta
 
Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7Arun Gupta
 
Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0Arun Gupta
 
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Arun Gupta
 
GlassFish OSGi Server
GlassFish OSGi ServerGlassFish OSGi Server
GlassFish OSGi ServerArtur Alves
 
TDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE ApplicationTDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE ApplicationArun Gupta
 
OSGi and Java EE in GlassFish - Tech Days 2010 India
OSGi and Java EE in GlassFish - Tech Days 2010 IndiaOSGi and Java EE in GlassFish - Tech Days 2010 India
OSGi and Java EE in GlassFish - Tech Days 2010 IndiaArun Gupta
 
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...Arun Gupta
 
TDC 2011: The Java EE 7 Platform: Developing for the Cloud
TDC 2011: The Java EE 7 Platform: Developing for the CloudTDC 2011: The Java EE 7 Platform: Developing for the Cloud
TDC 2011: The Java EE 7 Platform: Developing for the CloudArun Gupta
 
Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011Arun Gupta
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudArun Gupta
 
Java EE 6 Component Model Explained
Java EE 6 Component Model Explained Java EE 6 Component Model Explained
Java EE 6 Component Model Explained Shreedhar Ganapathy
 
Boston 2011 OTN Developer Days - GlassFish
Boston 2011 OTN Developer Days - GlassFishBoston 2011 OTN Developer Days - GlassFish
Boston 2011 OTN Developer Days - GlassFishArun Gupta
 
GlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 ApplicationsGlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 ApplicationsArun Gupta
 
Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1 Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1 Shreedhar Ganapathy
 

Tendances (20)

The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the Cloud
 
GlassFish REST Administration Backend
GlassFish REST Administration BackendGlassFish REST Administration Backend
GlassFish REST Administration Backend
 
GlassFish Community Update @ JavaOne 2011
GlassFish Community Update @ JavaOne 2011GlassFish Community Update @ JavaOne 2011
GlassFish Community Update @ JavaOne 2011
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
 
Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7
 
Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0
 
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
 
GlassFish OSGi Server
GlassFish OSGi ServerGlassFish OSGi Server
GlassFish OSGi Server
 
TDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE ApplicationTDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE Application
 
OSGi and Java EE in GlassFish - Tech Days 2010 India
OSGi and Java EE in GlassFish - Tech Days 2010 IndiaOSGi and Java EE in GlassFish - Tech Days 2010 India
OSGi and Java EE in GlassFish - Tech Days 2010 India
 
Java EE 6 and GlassFish portfolio
Java EE 6 and GlassFish portfolioJava EE 6 and GlassFish portfolio
Java EE 6 and GlassFish portfolio
 
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
GlassFish 3.1 – Simplifying your Java EE 6 Development and Deployment @ JAX L...
 
TDC 2011: The Java EE 7 Platform: Developing for the Cloud
TDC 2011: The Java EE 7 Platform: Developing for the CloudTDC 2011: The Java EE 7 Platform: Developing for the Cloud
TDC 2011: The Java EE 7 Platform: Developing for the Cloud
 
Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the Cloud
 
Java EE 6 Component Model Explained
Java EE 6 Component Model Explained Java EE 6 Component Model Explained
Java EE 6 Component Model Explained
 
Boston 2011 OTN Developer Days - GlassFish
Boston 2011 OTN Developer Days - GlassFishBoston 2011 OTN Developer Days - GlassFish
Boston 2011 OTN Developer Days - GlassFish
 
GlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 ApplicationsGlassFish Server 3.1: Deploying your Java EE 6 Applications
GlassFish Server 3.1: Deploying your Java EE 6 Applications
 
Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1 Java EE 6 Clustering with Glassfish 3.1
Java EE 6 Clustering with Glassfish 3.1
 

Similaire à OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010

OSGi-enabled Java EE applications in GlassFish
OSGi-enabled Java EE applications in GlassFishOSGi-enabled Java EE applications in GlassFish
OSGi-enabled Java EE applications in GlassFishArun Gupta
 
OSGi-enabled Java EE Applications using GlassFish
OSGi-enabled Java EE Applications using GlassFishOSGi-enabled Java EE Applications using GlassFish
OSGi-enabled Java EE Applications using GlassFishArun Gupta
 
Enterprise OSGi at eBay
Enterprise OSGi at eBayEnterprise OSGi at eBay
Enterprise OSGi at eBayTony Ng
 
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011Arun Gupta
 
Java Modularity with OSGi
Java Modularity with OSGiJava Modularity with OSGi
Java Modularity with OSGiIlya Rybak
 
Part 8 - Enforcing modularity of JasForge using OSGI and Futures Evolutions
Part 8 - Enforcing modularity of JasForge using OSGI and Futures EvolutionsPart 8 - Enforcing modularity of JasForge using OSGI and Futures Evolutions
Part 8 - Enforcing modularity of JasForge using OSGI and Futures EvolutionsJasmine Conseil
 
Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011Agora Group
 
Glassfish An Introduction
Glassfish An IntroductionGlassfish An Introduction
Glassfish An IntroductionJumping Bean
 
Introduction to OSGi - Part-1
Introduction to OSGi - Part-1Introduction to OSGi - Part-1
Introduction to OSGi - Part-1kshanth2101
 
OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...
OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...
OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...OpenBlend society
 
OSGi in 5 minutes
OSGi in 5 minutesOSGi in 5 minutes
OSGi in 5 minutesSerge Huber
 
Why should i switch to Java SE 7
Why should i switch to Java SE 7Why should i switch to Java SE 7
Why should i switch to Java SE 7Vinay H G
 

Similaire à OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010 (20)

OSGi-enabled Java EE applications in GlassFish
OSGi-enabled Java EE applications in GlassFishOSGi-enabled Java EE applications in GlassFish
OSGi-enabled Java EE applications in GlassFish
 
OSGi-enabled Java EE Applications using GlassFish
OSGi-enabled Java EE Applications using GlassFishOSGi-enabled Java EE Applications using GlassFish
OSGi-enabled Java EE Applications using GlassFish
 
GlassFish Community and future larochelle
GlassFish Community and future larochelleGlassFish Community and future larochelle
GlassFish Community and future larochelle
 
Enterprise OSGi at eBay
Enterprise OSGi at eBayEnterprise OSGi at eBay
Enterprise OSGi at eBay
 
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
 
Java Modularity with OSGi
Java Modularity with OSGiJava Modularity with OSGi
Java Modularity with OSGi
 
GlassFish and JavaEE, Today and Future
GlassFish and JavaEE, Today and FutureGlassFish and JavaEE, Today and Future
GlassFish and JavaEE, Today and Future
 
Part 8 - Enforcing modularity of JasForge using OSGI and Futures Evolutions
Part 8 - Enforcing modularity of JasForge using OSGI and Futures EvolutionsPart 8 - Enforcing modularity of JasForge using OSGI and Futures Evolutions
Part 8 - Enforcing modularity of JasForge using OSGI and Futures Evolutions
 
Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011Andrei Niculae - glassfish - 24mai2011
Andrei Niculae - glassfish - 24mai2011
 
Glassfish An Introduction
Glassfish An IntroductionGlassfish An Introduction
Glassfish An Introduction
 
GlassFish OSGi - Java2days 2010
GlassFish OSGi - Java2days 2010GlassFish OSGi - Java2days 2010
GlassFish OSGi - Java2days 2010
 
Introduction to OSGi - Part-1
Introduction to OSGi - Part-1Introduction to OSGi - Part-1
Introduction to OSGi - Part-1
 
Karaf ee-apachecon eu-2012
Karaf ee-apachecon eu-2012Karaf ee-apachecon eu-2012
Karaf ee-apachecon eu-2012
 
Osgi Sun 20080820
Osgi Sun 20080820Osgi Sun 20080820
Osgi Sun 20080820
 
OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...
OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...
OSGi & Java EE: A hybrid approach to Enterprise Java Application Development,...
 
Glass Fishv3 March2010
Glass Fishv3 March2010Glass Fishv3 March2010
Glass Fishv3 March2010
 
OSGi in 5 minutes
OSGi in 5 minutesOSGi in 5 minutes
OSGi in 5 minutes
 
JavaEE 6 tools coverage
JavaEE 6 tools coverageJavaEE 6 tools coverage
JavaEE 6 tools coverage
 
Why should i switch to Java SE 7
Why should i switch to Java SE 7Why should i switch to Java SE 7
Why should i switch to Java SE 7
 
Java8 - Under the hood
Java8 - Under the hoodJava8 - Under the hood
Java8 - Under the hood
 

Plus de Arun Gupta

5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdfArun Gupta
 
Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Arun Gupta
 
Machine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesMachine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesArun Gupta
 
Secure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerSecure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerArun Gupta
 
Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Arun Gupta
 
Why Amazon Cares about Open Source
Why Amazon Cares about Open SourceWhy Amazon Cares about Open Source
Why Amazon Cares about Open SourceArun Gupta
 
Machine learning using Kubernetes
Machine learning using KubernetesMachine learning using Kubernetes
Machine learning using KubernetesArun Gupta
 
Building Cloud Native Applications
Building Cloud Native ApplicationsBuilding Cloud Native Applications
Building Cloud Native ApplicationsArun Gupta
 
Chaos Engineering with Kubernetes
Chaos Engineering with KubernetesChaos Engineering with Kubernetes
Chaos Engineering with KubernetesArun Gupta
 
How to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMHow to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMArun Gupta
 
Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Arun Gupta
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteArun Gupta
 
Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Arun Gupta
 
Mastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitMastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitArun Gupta
 
Top 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeTop 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeArun Gupta
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017Arun Gupta
 
Java EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftJava EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftArun Gupta
 
Docker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersDocker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersArun Gupta
 
Thanks Managers!
Thanks Managers!Thanks Managers!
Thanks Managers!Arun Gupta
 
Migrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersMigrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersArun Gupta
 

Plus de Arun Gupta (20)

5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf
 
Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019
 
Machine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesMachine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and Kubernetes
 
Secure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerSecure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using Firecracker
 
Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019
 
Why Amazon Cares about Open Source
Why Amazon Cares about Open SourceWhy Amazon Cares about Open Source
Why Amazon Cares about Open Source
 
Machine learning using Kubernetes
Machine learning using KubernetesMachine learning using Kubernetes
Machine learning using Kubernetes
 
Building Cloud Native Applications
Building Cloud Native ApplicationsBuilding Cloud Native Applications
Building Cloud Native Applications
 
Chaos Engineering with Kubernetes
Chaos Engineering with KubernetesChaos Engineering with Kubernetes
Chaos Engineering with Kubernetes
 
How to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMHow to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAM
 
Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 Keynote
 
Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018
 
Mastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitMastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv Summit
 
Top 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeTop 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's Landscape
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017
 
Java EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftJava EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShift
 
Docker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersDocker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developers
 
Thanks Managers!
Thanks Managers!Thanks Managers!
Thanks Managers!
 
Migrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersMigrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to Containers
 

Dernier

Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 

Dernier (20)

Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 

OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010

  • 1. <Insert Picture Here> OSGi & Java EE in GlassFish Arun Gupta, Java EE & GlassFish Guy blogs.sun.com/arungupta, @arungupta
  • 2. The following/preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 2
  • 3. 3
  • 4. 4
  • 5. 5
  • 6. Generally complex ... • 13 assembly missions • 16 pressurized modules • 35k cubic feet • 400 metric tons ~ 400K kg ~ 882K lbs • 173 – 286 miles above Earth • Average speed: 17,227 mph • 15.7 orbits/day • Estimated cost: $157 billion 6
  • 7. 7
  • 8. The OSGi Alliance is a worldwide consortium of technology innovators that advances a proven and mature process to assure interoperability of applications and services based on its component integration platform. 8
  • 9. OSGi Alliance provides ... • Specifications • Reference Implementation • Test Suites • Certifications 9
  • 10. What is OSGi Specification ? • Delivered by OSGi Alliance • Originally for embedded devices, set top boxes, network • Architecture for modular application development in Java • Breaks applications into “modules” or “bundles” • Can install, uninstall, start, and stop each bundle dynamically without restarting container • Multiple versions are supported • Dependencies explicitly defined with clear boundaries 10
  • 11. “JAR Hell” • JAR is a build-time and deploy-time concept, not run-time • Based on the ZIP file format • No metadata to indicate dependencies • Multiple versions of JARs cannot be loaded • All “public” classes are public • Access modifiers are for packages, not JAR 11
  • 12. OSGi Layers Service Life Cycle Module Execution Environment 12
  • 13. OSGi Bundle – Just a JAR File! Export-Package Import-Package Java Classes, Static Files, … Bundle-ClassPath (bundle private) ... META-INF/MANIFEST.MF Persistent OSGI-OPT (docs, source code, ...) Atomic 13
  • 14. Bundle is identified by ... • Bundle Identifier • Unique for the lifetime • getBundleId() • Bundle Location • Unique location of the bundle • getLocation() • Bundle Symbolic Name and Version • Globally unique identifier • getSymbolicName(), getVersion() 14
  • 15. Java Classes, Static Files, ... Service META-INF/MANIFEST.MF ... Export-Package ... Client Java Classes, Static Files, ... META-INF/MANIFEST.MF ... Import-Package ... 15
  • 16. Interaction between layers register / unregister get / unget Service manage start / stop Life Cycle Bundle Bundle install uninstall classload Module execute EE 16
  • 17. Bundle State Diagram update refresh install INSTALLED STARTING update rt resolve sta refresh RESOLVED ACTIVE uninstall stop STOPPING Each bundle installation is new 17
  • 18. OSGi Containers http://stackoverflow.com/questions/560794/what-osgi-container-do-you-recommend 18
  • 19. What is GlassFish ? • GlassFish is an open source community • Delivers Java EE Reference Implementation • GlassFish Server Open Source Edition - glassfish.org • Oracle GlassFish Server - oracle.com/goto/glassfish • Tooling: NetBeans, Eclipse, IntelliJ • GlassFish 3.1 – currently developed • Modular, Embeddable, Extensible • High Availability, Clustering, Centralized Administration 19
  • 20. GlassFish Distributions Distribution License Features GlassFish Open Source CDDL & • Java EE 6 Compatibility Edition 3.0 GPLv2 • No Clustering • Clustering planned in 3.1 • mod_jk for load balancing GlassFish Open Source CDDL & • Java EE 5 Compatibility Edition 2.1.1 GPLv2 • In memory replication • mod_loadbalancer Oracle GlassFish Server 3.0 Commercial • GlassFish Open Source Edition 3.0 • GlassFish Server Control Clustering • Clustering planned in 3.1 Coming Soon! Oracle GlassFish Server Commercial • GlassFish Open Source Edition 2.1.1 2.1.1 • Enterprise Manager • HADB 20
  • 21. GlassFish Roadmap Detail 21 ©2010 Oracle Corporation
  • 22. OSGi in GlassFish • GlassFish runs on top of OSGi • Felix is default, also runs on Equinox & Knopflerfish • Runs in an existing shell • 200+ bundles in v3 • All GlassFish modules are OSGi bundles • No OSGi APIs are used in GlassFish • HK2 provides abstraction layer http://blogs.sun.com/arungupta/entry/totd_103_glassfish_v3_with http://blogs.sun.com/arungupta/entry/totd_127_embedding_glassfish_in 22
  • 23. GlassFish: Modular Platform REST OpenMQ WebSpace Server Scripting OpenESB OpenSSO Web Services JMS Portal Web Connection Java Web Services JSF EJB Container Application Container Container Pooling (JCA) Persistence Interop Management Console Update Center Management CLI Naming Grizzly Framework Monitoring/ Injection Service Config Deploy Manager Security Monitor Configuration Cluster Serviceability/ Logging GlassFish V3 Core Transaction Security (Module Subsystem) Service Service Deployment Clustering OSGi Java SE 23
  • 24. GlassFish v3 Runtime with OSGi GlassFish V3 modules Random OSGi Bundle (OSGi + extra metadata) Service OSGi HK2 Service layer Mapper Service Layer OSGi Bundle Management 24
  • 25. Benefits of OSGi for GlassFish • Demands and enforces stronger modularity • Enables custom tailored App server • Lazy loading based on usage patterns • Open for all JVM based technologies • Native deployment of JRuby-on-Rails application • Successfully maintained quick startup • Available to GlassFish developers and users 25
  • 26. Create an OSGi Bundle – Maven • Create a Maven project • Implement “BundleActivator” • Update “pom.xml” • Change packaging to “bundle” • Add dependencies on OSGI APIs • Use “maven-bundle-plugin” to package • Build the bundle http://blogs.sun.com/arungupta/entry/totd_36_deploy_osgi_bundles 26
  • 27. Create an OSGi bundle – NetBeans http://blogs.sun.com/arungupta/entry/totd_125_creating_an_osgi 27
  • 28. Create an OSGi bundle – NetBeans http://blogs.sun.com/arungupta/entry/totd_125_creating_an_osgi 28
  • 29. Create an OSGi bundle – Eclipse http://blogs.sun.com/arungupta/entry/totd_126_creating_an_osgi 29
  • 30. OSGi Bundles in GlassFish • asadmin deploy –type osgi • “cp”/“rm” glassfish/domains/domain1/autodeploy/bundles • telnet localhost 6666 • Apache Felix Web Console • REST Console bundle • Perl-based shell (Osgish) • VisualVM OSGi Plugin • Supports OBR • Discover and deploy dependencies together http://blogs.sun.com/arungupta/entry/totd_118_managing_osgi_bundles 30
  • 31. 31
  • 32. Dynamic Discovery of OSGi service OSGi Export-Package API Service Registry Import-Package Impl Bundle-Activator Service Import-Package Trackerasdsadasdsd cker Client Service Tra Bundle-Activator Filters http://blogs.sun.com/arungupta/entry/totd_131_dynamic_osgi_services 32
  • 33. Why OSGi in Enterprise Apps ? • Improved modularity • Reusable bundles • Dependencies are more visible • Better isolation / Cleaner class loading model • Better version control • Faster deployment cycle • Better tools for deployment • Observable bundle life cycle • Service Tracking • Criteria-based service selection 33
  • 34. Why Java EE in Enterprise Apps ? • Better API (JPA, JTA, JAXB, JNDI) • Better component model (Servlet, EJB, JAX-RS) • Better frameworks (JSF, CDI) • Ease-of-use (Annotations, Convention-over- configuration) • Platform provided integrated infrastructure services • Transaction, Security, Persistence, Remoting, ... • Many more reasons ... 34
  • 35. 35
  • 36. OSGi Enterprise Expert Group The OSGi Enterprise Expert Group (EEG) is chartered to define the technical requirements and specifications to tailor and extend the OSGi Service Platform to address information technology software infrastructure use cases found in enterprise business scenarios. http://www.osgi.org/EEG/HomePage 36
  • 37. Current Status • Released OSGi Service Platform Enterprise Specification 4.2 in 2010 • Open Source Efforts • GlassFish • Project Aries • Eclipse Gemini 37
  • 38. Hybrid Applications “A hybrid application is an OSGi bundle as well as a Java EE archive and hence has both an OSGi bundle context and Java EE context at runtime and can leverage capabilities of both the platforms.” 38
  • 39. Role of GlassFish • Provides a runtime for Hybrid Applications • Implements Java EE related OSGi services and standards • Don't have to assemble the bits • OSGi is no longer under the cover • Raises visibility from GlassFish developers to users 39
  • 40. OSGi EEG Focus • Scaling, including multi-container and multi-process environments • Distributed and/or federated service model for • Multiple Service Platforms • External, heterogeneous systems • Requirements for extensions to the OSGi publish/f nd/bind service model i • Enterprise-class life cycle and conf guration i management • Integration of established Java EE technology into OSGi 40
  • 41. Why Hybrid Apps ? Best of both worlds!!! Why do you want to learn new APIs ? 41
  • 42. Role of GlassFish • Provides a runtime for Hybrid Applications • Implements Java EE related OSGi services and standards • Don't have to assemble the bits • OSGi is no longer under the cover • Raises visibility from GlassFish developers to users 42
  • 43. OSGi Compendium Specs in GlassFish • OSGi/Web Application (rfc #66) • OSGi/JPA (rfc #143) • OSGi/JDBC (rfc #122) • OSGi/JTA (rfc #98) • OSGi/JNDI (rfc #142) • OSGi/HTTP Service 43
  • 44. OSGi/Web Application (rfc #66) • Web Application Bundle (WAB) • WAR + OSGi + Web-ContextPath Header • Can use all enterprise APIs include JPA with lazy loading • Sample manifest: Manifest-Version: 1.0 Import-Package: javax.servlet.http; javax.persistence Bundle-ClassPath: WEB-INF/classes/,WEB-INF/lib/entities.jar Bundle-Version: 1.0 Bundle-ManifestVersion: 2 Web-ContextPath: /hello Bundle-SymbolicName: test.hellowab • Wrapped WAR Support • webbundle: URL scheme 44
  • 45. OSGi Declarative Services • Complications of Publish/Find/Bind • Long startup time • Memory footprint • Complex service programming model • OSGi services in Java EE @Resource(mappedName=”osgiName”) SomeOSGiService osgiService; • JNDI Lookup • Portable, no OSGi dependencies in application • Exported APIs visible to Java EE apps 45
  • 46. OSGi Declarative Service <scr:component enabled="true" name="hello-service"> <implementation class="org.glassfish.samples.osgi.helloservice.impl.HelloImpl"/> <service servicefactory="false"> OSGI-INF/ <provide interface="org.glassfish.samples.osgi.helloservice.api.HelloService"/> </service> serviceComponents.xml <property name="service.pid" value="hello-service"/> </scr:component> Export-Package API Servlet Client ... import org.glassfish.samples.osgi.helloservice.api.HelloService; HelloImpl @WebServlet(urlPatterns={"/HelloClient"}) public class HelloClient extends HttpServlet { @Resource(mappedName="hello-service") HelloService helloService; @Resource(mappedName="howdy-service") HowdyImpl HelloService howdyService; ... http://blogs.sun.com/arungupta/entry/totd_124_osgi_declarative_services 46
  • 47. OSGi Declarative Services import org.apache.felix.scr.annotations.Component; import org.apache.felix.scr.annotations.Service; import org.glassfish.samples.osgi.helloservice.api.HelloService; maven- bundle- @Component(name="hello-service") plugin @Service public class HelloImpl implements HelloService { maven- public String sayHello(String name) { scr- return "Hello " + name; plugin } } http://blogs.sun.com/arungupta/entry/totd_124_osgi_declarative_services 47
  • 48. JAX-WS & OSGi Artifacts WSDL JAX-WS JAX-WS Endpoint Client Business Method 48
  • 49. JAX-WS & OSGi Artifacts WSDL JAX-WS JAX-WS Endpoint Client Business Delegate Method Query Registry OSGi OSGi Register Service Service Bundle Registry Business Method http://blogs.sun.com/arungupta/entry/totd_130_invoking_a_osgi 49
  • 50. OSGi & EJB • Export EJB as OSGi services • Pure OSGi component can discover/invoke the service • Advantages • Declarative security, Transaction, Context dependency, Injection, … are available to non-EE components • TX context from pure OSGi bundle propagates to invoked EJB • Ditto for security and persistence context 50
  • 51. OSGi & EJB Client OSGi Service Registry login Export-Package API register Export-EJB Impl Container-managed JPA LoadData http://weblogs.java.net/blog/ss141213/archive/2010/03/30/ejb-osgi-service-demo-eclipsecon 51
  • 52. JavaOne 2010 Hands-on Lab (S313522) OSGi Client OSGi Service WAB EJB http://blogs.sun.com/arungupta/entry/screencast_32_osgi_enabled_java 52
  • 53. OSGi & JMS Export-EJB: None Consumer Destination ConnectionFactory Messages# BundleActivator Producer OSGi Config Admin http://www.java.net/blog/ss141213/archive/2010/04/21/osgijmsmdb-example 53
  • 54. Extending GlassFish v3 Using Spring dm Container • Simple Spring bean implementing the service • Invoke the service from a servlet using standard @Resource injection • Single runtime for both Spring and full Java EE http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4 54
  • 55. Upcoming OSGi & Java EE Integration in 3.1 • With JPA • Entities + persistence.xml bundled as OSGi bundle • EE resources like JDBC, JavaMail, or JMS resource available in OSGi service registry • With CDI& JAX-RS 55
  • 56. Upcoming OSGi & Java EE Integration in 3.1 • GlassFish can be embedded in OSGi and non-OSGi runtime • OSGi Administration • Apache Gogo Shell – Scripting environment (RFC #147) • Scripting, Piping, Variables, ... • Closures, Dynamic method invocations, ... • OSGi Web Console – Web-front end • OBR Integration – Deployment can resolve dependencies via OBR http://wiki.glassfish.java.net/attach/V3FunctionalSpecs/GFv3.1-OSGi-onepager-v0.2.txt 56
  • 57. References • glassfish.org • blogs.sun.com/theaquarium • oracle.com/goto/glassfish • glassfish.org/roadmap • Follow @glassfish • OSGi/GlassFish Dashboard: wikis.sun.com/display/GlassFish/OSGI 57
  • 58. <Insert Picture Here> OSGi & Java EE in GlassFish Arun Gupta, Java EE & GlassFish Guy blogs.sun.com/arungupta, @arungupta