SlideShare ist ein Scribd-Unternehmen logo
1 von 47
Downloaden Sie, um offline zu lesen
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Operations and Monitoring with
Spring
Eberhard Wolff
Regional Director and Principal
Consultant
SpringSource
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 2
A Short History of Spring
•  Spring is a platform independent framework for the
development of (Enterprise) Java Applications
•  Originally started as an easier to use alternative for
Java EE development
•  In particular compared to EJB
•  See "J2EE Development Without EJB"
•  But actually there is more to it
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 3
Programming Model vs.
Infrastructure
•  Programming Model:
A set of APIs to use as a developer
•  Infrastructure:
Something to run your software on
•  Spring defines a Programming Model but no
Infrastructure
•  …you can use Java EE, a simple Servlet container…
•  Java EE defines a Programming Model and an
Infrastructure
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 4
Bundling Programming Model
and Infrastructure
•  Bundling leads to some problems
•  To upgrade the programming model you need to
upgrade the infrastructure
•  Operations will not like that idea
•  You are limited to a certain infrastructure – what do
you do concerning OSGi?
•  You only get the benefit from OSGi if you use its non
OSGi deployment model
•  Users realize how flexible they are using Spring
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 5
Spring s Impact on Java EE
Production Environment
Jaav EE Application Server
Servlet Container
• Connection mgmt.
• Clustering
• Deployment management
EJB Container
EAR
EJB
WAR
Production Environment
Tomcat
Production Environment
Java EE Application Server
Servlet Container
• Connection mgmt.
• Clustering
• Deployment management
WAR
Spring
Powered
Application
Spring
WAR
Spring
Powered
Application
Spring
Servlet Container
• Connection mgmt.
• Clustering
• Deployment management
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 6
So: What is the advantage of
Spring over Java EE 6?
•  Type error: Cannot compare infrastructure +
programming model to programming model
•  But seriously…
•  Spring actually exists – Java EE 6 is still being
standardized
•  You don't need to upgrade your server (many are
still on Java EE 5)
•  Actually this question is not important to many:
They don't run on Java EE anyway
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 7
0% 10% 20% 30% 40% 50% 60% 70%
Java Application Server Usage, Source: 2008 Evans Data Survey
Spring ApplicationsWebLogic 26%
JBoss 38%
WebSphere 43%
Apache Tomcat 68%
Today s De Facto Standards
Spring and Tomcat
•  Obviously the Java EE platform is often not needed
•  A Servlet container is enough
•  …and too complex
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 8
Is Spring + Servlet container
as powerful as Java EE?
•  "Classic" features of a Java EE server
Feature Spring Solution
Transactions No real 2PC but smart solutions for many
scenarios
Security Spring Security is much better
Distribution Not too important any more
Spring Remoting offers even more features
Persistence Java EE's persistence (JPA) can be used –
and several other
Naming Supported by Dependency Injection
Connection / Resource
Pooling
Supported by Servlet Containers and
DataSource implementations
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 9
So…
•  Let's add transaction support (JTA) to Tomcat
•  Then we have a full blown Application Server
•  But Tomcat is very successful already
•  …and Spring offers solutions
–  for O/R mappers
–  for JMS + a DataSource
•  JTA seems to be a not too important
•  Is there anything else we need to think about?
•  Infrastructure is not just for developers!
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 10
Operations
•  Operations cares about
–  monitoring
–  administration
•  They should be able to look into application
•  Usually there is more than one Application Server –
how can you handle larger installations?
•  Individual updates of parts of an application are
important
•  Virtualization / Cloud
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Spring Enterprise -
Looking into Applications
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 12
Your Application
Spring Enterprise -
Looking into Applications
•  Certified Spring
•  Instrumented
Spring
–  Monitor Spring
apps across
infrastructure
•  JMX flows into
Management
Application
–  Track app
performance
•  Just different
JARs
•  No code changes
Enterprise
Management
Application
JMX
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Demo: Spring Enterprise
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Handling large clusters
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 15
Cluster
•  Usually there is more than one Tomcat server in an
installation
•  How can you manage them?
•  Ideally centralized
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 16
tc Server
Tomcat
Enterprise
support
Distributed
Operations
Diagnostics
Enterprise
Capabilities
Tomcat you know. Enterprise capabilities you need.
SpringSource tc Server
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 17
Product Architecture
tc Server machine 1
Hyperic
Agent
Mgmt
Server
Hyperic
Server
Hyperic
Web
Console
Other Manageable Items
Apache http Server
Apache Tomcat
ActiveMQ
JVM
Operating Systems
Scripts
Configs
Inventory,
Metric,
Audit, …
tc
Server
tc Server machine n
Hyperic
Agent
Configs
tc
Server
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 18
tc Server
•  Binaries almost unchanged – no lock in
•  Centralized monitoring and administration
•  Groups of server allow to deal with a group of
servers – not just one
–  Start / stop / restart
–  Deployment
–  Configuration including JVM options
•  Easy operations of large Tomcat installations
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Demo: tc Server
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 20
Demo
WhiteRabbit
Hyperic
Agent
Ubuntu1
Hyperic
Server
Hyperic
Web
Console
Inventory,
Metric,
Audit, …
tc
Server
Ubuntu1
Hyperic
Agent
tc
Server
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Updating parts of an application
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 22
dm Server
•  Modularization is key to maintainable software
•  Modularization at runtime gives more power to
Operations
•  Updates of parts of the application
•  Determining the source of an error
•  etc
•  On the client and in the embedded world OSGi has
succeeded as a standard for modularization
•  OSGi enters the server market…
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
OSGi
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 24
It's a module system
•  Partition a system into a number of modules –
"bundles"
•  Dynamic: Bundles can be installed, started, stopped,
uninstalled and updated
•  ...at runtime
•  better operations
•  Strict visibility rules
•  Resolution process satisfies dependencies of a
module
•  Understands versioning
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 25
It's even service-oriented
•  Bundles can publish services… dynamically!
•  Service Registry allows other bundles to consume
services
•  Services come and go at runtime
–  … transparently when using Spring-DM
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 26
OSGi Bundle
•  The fundamental unit of deployment and
modularity in OSGi
•  Just a JAR file
–  with additional entries in META-INF/MANIFEST.MF
•  Common manifest headers:
–  Bundle-SymbolicName
–  Bundle-Version
–  Bundle-Name
–  Bundle-ManifestVersion
–  Bundle-Vendor
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 27
Import / Export -Package
Declares package-level dependencies of your
bundle.
Import-Package: com.xyz.foo;
Import-Package:
com.xyz.foo;version="1.0.3"
Import-Package:
com.xyz.foo;version="[1.0.3,1.0.3]"
Import-Package:
com.xyz.foo;version="[1.0.3,1.1.0)",
com.xyz.bar;version="[1.0.3,2.0.0)"
Export-Package: com.xyz.foo
Export-Package: com.xyz.foo;version="1.0.5"
>= 1.0.3; e.g.,
1.0.3.GA, 1.0.4,
etc.
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Spring Dynamic Modules &
SpringSource dm Server
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 29
Spring-DM:
ApplicationContext
•  Configuration files in /META-INF/spring
•  Automatically merged
•  ..and ApplicationContext is created
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 30
Service export and import
<beans ...>
<osgi:service ref="customerDAO"
interface="dao.ICustomerDAO" />
<osgi:reference id="dataSource"
interface="javax.sql.DataSource" />
</beans>
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 31
Service export and import
•  Dynamic services automatically dealt with
•  i.e. method calls are buffered
•  Purely declarative
•  No dependencies on OSGi in the code
•  No resource leaks
•  Not solved in Spring Dynamic Modules:
–  Easy import of libraries
–  Using JPA or Hibernate in OSGi
–  Seamless Web Support
–  Notion of an application
•  Enter dm Server
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 32
dm Server Platform
• Modular profiles
• Bundle repository
• Library provisioning
• Serviceability
– FFDC
– Logging / Tracing
• Built on Equinox
• Modular architecture
– Subsystems
– Bundles
• Small footprint
WAR
Personality
Web Module
Personality
Bundle
Personality
Tomcat Deployer Management
Dynamic Modules Kernel
Equinox
JVM
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 33
Bundles for the example
•  Web
•  Service
•  API: only interfaces and domain
classes
–  Implementation can be exchanged
•  Could add infrastructure:
DataSource /
PlatformTransactionManager
API
Service
Web
Package
Import
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 34
Bundles & Types
•  Only dependencies to the API
•  Therefore: implementation can be exchanged even
at runtime
•  No direct dependencies to any implementation
•  Not shown: dependencies to external bundles
•  … can be installed in dm Server
•  … modular middleware!
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 35
Bundles & Services
Services:
Publish /
Consume
api
service
web Service
Registry
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 36
Bundles & Services
•  Infrastructure can use the same principle as
application services
•  i.e. DataSource and
PlatformTransactionManager are just another
service
•  Can I still run on plain Java EE?
•  Yes: instead of OSGi Service directly inject
Spring Beans
•  no more more dynamic services / modularization
•  No code change needed
•  Application can run on Java EE or OSGi
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 37
PAR
•  Packaging format for all
modules in an application
•  JAR with Application-*
manifest headers
•  Single unit: deploy,
refresh, undeploy
•  Application boundaries
–  Scoping of types and
services
–  DataSource does not leak
out of the application
–  Hibernate can change
domain objects
API
Service
Web
Package
Import
Spring
Taglibs
Application
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Web Migration: From WAR to
PAR
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 39
Shared Libraries WAR
Web Application Deployment
Options
•  Standard Java EE WAR
–  supported on dm Server as is
–  converted into an OSGi
bundle
•  Shared Libraries WAR
–  WAR + OSGi package imports
–  Eradicate library bloat of
monolithic Java EE
–  WARs
•  Shared Services WAR
–  Uses OSGi services
with Spring's
<osgi:reference>
•  Web Module
Standard WAR
libs
services Bundle
Repository
Shared Services WAR
OSGi
Service
Registry
services
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Roadmap
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 41
dm Server 2.0 Roadmap
•  SpringSource dm Server 2.0: 2009
•  Cloning bundles
–  solves problems around static variables and more
•  Shared Repository
–  make a repository available to other servers
•  Plan Files
–  Define an application as a collection of bundles
–  Does not contain the bundles, more flexible
•  Distributed and improved Management
–  operation on a group of servers
–  like tc Server for Tomcat
•  Modular Web Applications
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 42
Support for Enterprise OSGi
Standards
•  RFC 66: Web Container for OSGi (RI based on dm
Server)
•  RFC 119: Distributed OSGi
•  RFC 124: Blueprint Service (RI based on Spring-
DM)
•  RFC 139: JMX interface for OSGi
•  RFC 142: JNDI and OSGi integration
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 43
Note: OSGi has an impact on
operations
•  New deployment model
•  Updates of bundles possible
•  How much less regression testing do you actually
do?
•  Is redeploying just a part of an application OK for
operations?
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 44
Virtualization / Cloud
•  Deployment blueprints define machines and their
characteristics
•  vApp define a deployment format based on such
blueprints
•  dm Server, tc Server etc will be configurable using
vApp properties (e.g. ports)
•  vApps can be pre defined – just add your application
•  vApps can optimize for network traffic or availability
•  Deployment and set up of the VMs is trivial
•  …in your private or a public cloud
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Summary
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 46
Summary
•  Spring is a portable programming model
•  This help the move from full blown Java EE to
Servlet containers
•  An important part of infrastructures is support for
operations
•  Issues:
–  Monitoring e.g. Spring Enterprise
–  Cluster e.g. tc Server
–  Modularization at runtime e.g. OSGi / dm Server
–  Virtualization / Cloud
Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited.
Questions?
Eberhard Wolff
eberhard.wolff@springsource.com
http://SpringSource.com
Run	
  
Manage	
  
Build	
  

Weitere ähnliche Inhalte

Was ist angesagt?

De 03 Introduction To V Cloud Api V1
De 03 Introduction To V Cloud Api V1De 03 Introduction To V Cloud Api V1
De 03 Introduction To V Cloud Api V1
ikewu83
 
Great Java Application Server Debate
Great Java Application Server DebateGreat Java Application Server Debate
Great Java Application Server Debate
Hamed Hatami
 
Enterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQEnterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQ
Rob Davies
 
Dd13.2013.milano.open ntf
Dd13.2013.milano.open ntfDd13.2013.milano.open ntf
Dd13.2013.milano.open ntf
Ulrich Krause
 
Web Logic Jboss Final
Web Logic Jboss FinalWeb Logic Jboss Final
Web Logic Jboss Final
Mohamed Atef
 

Was ist angesagt? (20)

VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
 
De 03 Introduction To V Cloud Api V1
De 03 Introduction To V Cloud Api V1De 03 Introduction To V Cloud Api V1
De 03 Introduction To V Cloud Api V1
 
Great Java Application Server Debate
Great Java Application Server DebateGreat Java Application Server Debate
Great Java Application Server Debate
 
Enterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQEnterprise Integration Patterns with ActiveMQ
Enterprise Integration Patterns with ActiveMQ
 
Oracle ravello overview
Oracle ravello overviewOracle ravello overview
Oracle ravello overview
 
VMworld 2013: Part 1: Getting Started with vCenter Orchestrator
VMworld 2013: Part 1: Getting Started with vCenter Orchestrator VMworld 2013: Part 1: Getting Started with vCenter Orchestrator
VMworld 2013: Part 1: Getting Started with vCenter Orchestrator
 
Experiences of SOACS
Experiences of SOACSExperiences of SOACS
Experiences of SOACS
 
Java EE Arquillian Testing with Docker & The Cloud
Java EE Arquillian Testing with Docker & The CloudJava EE Arquillian Testing with Docker & The Cloud
Java EE Arquillian Testing with Docker & The Cloud
 
CIRCUIT 2015 - Monitoring AEM
CIRCUIT 2015 - Monitoring AEMCIRCUIT 2015 - Monitoring AEM
CIRCUIT 2015 - Monitoring AEM
 
A295 nodejs-knowledge-accelerator
A295   nodejs-knowledge-acceleratorA295   nodejs-knowledge-accelerator
A295 nodejs-knowledge-accelerator
 
BP-5 Application Lifecycle Management
BP-5 Application Lifecycle ManagementBP-5 Application Lifecycle Management
BP-5 Application Lifecycle Management
 
A301 ctu madrid2016-monitoring
A301 ctu madrid2016-monitoringA301 ctu madrid2016-monitoring
A301 ctu madrid2016-monitoring
 
Dd13.2013.milano.open ntf
Dd13.2013.milano.open ntfDd13.2013.milano.open ntf
Dd13.2013.milano.open ntf
 
CollabSphere 2021 - DEV114 - The Nuts and Bolts of CI/CD With a Large XPages ...
CollabSphere 2021 - DEV114 - The Nuts and Bolts of CI/CD With a Large XPages ...CollabSphere 2021 - DEV114 - The Nuts and Bolts of CI/CD With a Large XPages ...
CollabSphere 2021 - DEV114 - The Nuts and Bolts of CI/CD With a Large XPages ...
 
XPages -Beyond the Basics
XPages -Beyond the BasicsXPages -Beyond the Basics
XPages -Beyond the Basics
 
V mware v fabric 5 - what's new technical sales training presentation
V mware v fabric 5 - what's new technical sales training presentationV mware v fabric 5 - what's new technical sales training presentation
V mware v fabric 5 - what's new technical sales training presentation
 
Is Enterprise Java Still Relevant (JavaOne 2015 session)
Is Enterprise Java Still Relevant (JavaOne 2015 session)Is Enterprise Java Still Relevant (JavaOne 2015 session)
Is Enterprise Java Still Relevant (JavaOne 2015 session)
 
JMP401: Masterclass: XPages Scalability
JMP401: Masterclass: XPages ScalabilityJMP401: Masterclass: XPages Scalability
JMP401: Masterclass: XPages Scalability
 
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
 
Web Logic Jboss Final
Web Logic Jboss FinalWeb Logic Jboss Final
Web Logic Jboss Final
 

Andere mochten auch

Developing polyglot persistence applications (SpringOne China 2012)
Developing polyglot persistence applications (SpringOne China 2012)Developing polyglot persistence applications (SpringOne China 2012)
Developing polyglot persistence applications (SpringOne China 2012)
Chris Richardson
 
Operations Management Pizza Express
Operations Management Pizza ExpressOperations Management Pizza Express
Operations Management Pizza Express
Stephen Baines
 
McDonald's Company Analysis
McDonald's Company AnalysisMcDonald's Company Analysis
McDonald's Company Analysis
Yanxin Jiang
 

Andere mochten auch (20)

Food express ecommerce - Operation management (om)
Food express ecommerce - Operation management (om)   Food express ecommerce - Operation management (om)
Food express ecommerce - Operation management (om)
 
Supply Chain Management of DHL Express Operations
Supply Chain Management of DHL Express Operations Supply Chain Management of DHL Express Operations
Supply Chain Management of DHL Express Operations
 
WebXpress solutions TMS express cargo
WebXpress solutions TMS express cargoWebXpress solutions TMS express cargo
WebXpress solutions TMS express cargo
 
Spring Boot Actuator
Spring Boot ActuatorSpring Boot Actuator
Spring Boot Actuator
 
Spring IO - Spring Boot for DevOps
Spring IO - Spring Boot for DevOpsSpring IO - Spring Boot for DevOps
Spring IO - Spring Boot for DevOps
 
Developing polyglot persistence applications (SpringOne China 2012)
Developing polyglot persistence applications (SpringOne China 2012)Developing polyglot persistence applications (SpringOne China 2012)
Developing polyglot persistence applications (SpringOne China 2012)
 
Developing polyglot persistence applications (gluecon 2013)
Developing polyglot persistence applications (gluecon 2013)Developing polyglot persistence applications (gluecon 2013)
Developing polyglot persistence applications (gluecon 2013)
 
Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring CloudSimplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring Cloud
 
Map, Flatmap and Reduce are Your New Best Friends: Simpler Collections, Concu...
Map, Flatmap and Reduce are Your New Best Friends: Simpler Collections, Concu...Map, Flatmap and Reduce are Your New Best Friends: Simpler Collections, Concu...
Map, Flatmap and Reduce are Your New Best Friends: Simpler Collections, Concu...
 
Operations Management Pizza Express
Operations Management Pizza ExpressOperations Management Pizza Express
Operations Management Pizza Express
 
Spring cloud for microservices architecture
Spring cloud for microservices architectureSpring cloud for microservices architecture
Spring cloud for microservices architecture
 
Deploying Spring Boot applications with Docker (east bay cloud meetup dec 2014)
Deploying Spring Boot applications with Docker (east bay cloud meetup dec 2014)Deploying Spring Boot applications with Docker (east bay cloud meetup dec 2014)
Deploying Spring Boot applications with Docker (east bay cloud meetup dec 2014)
 
HP ArcSight
HP ArcSight HP ArcSight
HP ArcSight
 
Dhl LOGISTICS
Dhl LOGISTICSDhl LOGISTICS
Dhl LOGISTICS
 
Process design
Process designProcess design
Process design
 
Java SE 8 best practices
Java SE 8 best practicesJava SE 8 best practices
Java SE 8 best practices
 
Developing microservices with aggregates (devnexus2017)
Developing microservices with aggregates (devnexus2017)Developing microservices with aggregates (devnexus2017)
Developing microservices with aggregates (devnexus2017)
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
SF Express
SF ExpressSF Express
SF Express
 
McDonald's Company Analysis
McDonald's Company AnalysisMcDonald's Company Analysis
McDonald's Company Analysis
 

Ähnlich wie Operations and Monitoring with Spring

Using MySQL in Automated Testing
Using MySQL in Automated TestingUsing MySQL in Automated Testing
Using MySQL in Automated Testing
Morgan Tocker
 
Was liberty in deployments
Was liberty in deploymentsWas liberty in deployments
Was liberty in deployments
sflynn073
 
Performance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMsPerformance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMs
Maarten Smeets
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1
Ivan Ma
 

Ähnlich wie Operations and Monitoring with Spring (20)

Openfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentOpenfest15 MySQL Plugin Development
Openfest15 MySQL Plugin Development
 
Succeding with the Apache SOA stack
Succeding with the Apache SOA stackSucceding with the Apache SOA stack
Succeding with the Apache SOA stack
 
The forgotten route: Making Apache Camel work for you
The forgotten route: Making Apache Camel work for youThe forgotten route: Making Apache Camel work for you
The forgotten route: Making Apache Camel work for you
 
Using MySQL in Automated Testing
Using MySQL in Automated TestingUsing MySQL in Automated Testing
Using MySQL in Automated Testing
 
Ratpack - SpringOne2GX 2015
Ratpack - SpringOne2GX 2015Ratpack - SpringOne2GX 2015
Ratpack - SpringOne2GX 2015
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling Magento
 
Serverless Java - Challenges and Triumphs
Serverless Java - Challenges and TriumphsServerless Java - Challenges and Triumphs
Serverless Java - Challenges and Triumphs
 
Oracle ADF Architecture TV - Development - Version Control
Oracle ADF Architecture TV - Development - Version ControlOracle ADF Architecture TV - Development - Version Control
Oracle ADF Architecture TV - Development - Version Control
 
Chapter 11:Understanding Client-Side Technologies
Chapter 11:Understanding Client-Side TechnologiesChapter 11:Understanding Client-Side Technologies
Chapter 11:Understanding Client-Side Technologies
 
Azug BE Session Nov 2018 Wim Van den Broeck
Azug BE Session Nov 2018 Wim Van den BroeckAzug BE Session Nov 2018 Wim Van den Broeck
Azug BE Session Nov 2018 Wim Van den Broeck
 
Getting Started with PaaS
Getting Started with PaaSGetting Started with PaaS
Getting Started with PaaS
 
Getting Started with Platform-as-a-Service
Getting Started with Platform-as-a-ServiceGetting Started with Platform-as-a-Service
Getting Started with Platform-as-a-Service
 
Web frameworks
Web frameworksWeb frameworks
Web frameworks
 
Was liberty in deployments
Was liberty in deploymentsWas liberty in deployments
Was liberty in deployments
 
Performance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMsPerformance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMs
 
XPages: No Experience Needed
XPages: No Experience NeededXPages: No Experience Needed
XPages: No Experience Needed
 
PaaS with Java
PaaS with JavaPaaS with Java
PaaS with Java
 
SOA with Zend Framework
SOA with Zend FrameworkSOA with Zend Framework
SOA with Zend Framework
 
Platform Engineering for the Modern Oracle World
Platform Engineering for the Modern Oracle WorldPlatform Engineering for the Modern Oracle World
Platform Engineering for the Modern Oracle World
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1
 

Mehr von Eberhard Wolff

Mehr von Eberhard Wolff (20)

Architectures and Alternatives
Architectures and AlternativesArchitectures and Alternatives
Architectures and Alternatives
 
Beyond Microservices
Beyond MicroservicesBeyond Microservices
Beyond Microservices
 
The Frontiers of Continuous Delivery
The Frontiers of Continuous DeliveryThe Frontiers of Continuous Delivery
The Frontiers of Continuous Delivery
 
Four Times Microservices - REST, Kubernetes, UI Integration, Async
Four Times Microservices - REST, Kubernetes, UI Integration, AsyncFour Times Microservices - REST, Kubernetes, UI Integration, Async
Four Times Microservices - REST, Kubernetes, UI Integration, Async
 
Microservices - not just with Java
Microservices - not just with JavaMicroservices - not just with Java
Microservices - not just with Java
 
Deployment - Done Right!
Deployment - Done Right!Deployment - Done Right!
Deployment - Done Right!
 
Data Architecture not Just for Microservices
Data Architecture not Just for MicroservicesData Architecture not Just for Microservices
Data Architecture not Just for Microservices
 
How to Split Your System into Microservices
How to Split Your System into MicroservicesHow to Split Your System into Microservices
How to Split Your System into Microservices
 
Microservices and Self-contained System to Scale Agile
Microservices and Self-contained System to Scale AgileMicroservices and Self-contained System to Scale Agile
Microservices and Self-contained System to Scale Agile
 
How Small Can Java Microservices Be?
How Small Can Java Microservices Be?How Small Can Java Microservices Be?
How Small Can Java Microservices Be?
 
Data Architecturen Not Just for Microservices
Data Architecturen Not Just for MicroservicesData Architecturen Not Just for Microservices
Data Architecturen Not Just for Microservices
 
Microservices: Redundancy=Maintainability
Microservices: Redundancy=MaintainabilityMicroservices: Redundancy=Maintainability
Microservices: Redundancy=Maintainability
 
Self-contained Systems: A Different Approach to Microservices
Self-contained Systems: A Different Approach to MicroservicesSelf-contained Systems: A Different Approach to Microservices
Self-contained Systems: A Different Approach to Microservices
 
Microservices Technology Stack
Microservices Technology StackMicroservices Technology Stack
Microservices Technology Stack
 
Software Architecture for Innovation
Software Architecture for InnovationSoftware Architecture for Innovation
Software Architecture for Innovation
 
Five (easy?) Steps Towards Continuous Delivery
Five (easy?) Steps Towards Continuous DeliveryFive (easy?) Steps Towards Continuous Delivery
Five (easy?) Steps Towards Continuous Delivery
 
Nanoservices and Microservices with Java
Nanoservices and Microservices with JavaNanoservices and Microservices with Java
Nanoservices and Microservices with Java
 
Microservices: Architecture to Support Agile
Microservices: Architecture to Support AgileMicroservices: Architecture to Support Agile
Microservices: Architecture to Support Agile
 
Microservices: Architecture to scale Agile
Microservices: Architecture to scale AgileMicroservices: Architecture to scale Agile
Microservices: Architecture to scale Agile
 
Microservices, DevOps, Continuous Delivery – More Than Three Buzzwords
Microservices, DevOps, Continuous Delivery – More Than Three BuzzwordsMicroservices, DevOps, Continuous Delivery – More Than Three Buzzwords
Microservices, DevOps, Continuous Delivery – More Than Three Buzzwords
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 

Operations and Monitoring with Spring

  • 1. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Operations and Monitoring with Spring Eberhard Wolff Regional Director and Principal Consultant SpringSource
  • 2. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 2 A Short History of Spring •  Spring is a platform independent framework for the development of (Enterprise) Java Applications •  Originally started as an easier to use alternative for Java EE development •  In particular compared to EJB •  See "J2EE Development Without EJB" •  But actually there is more to it
  • 3. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 3 Programming Model vs. Infrastructure •  Programming Model: A set of APIs to use as a developer •  Infrastructure: Something to run your software on •  Spring defines a Programming Model but no Infrastructure •  …you can use Java EE, a simple Servlet container… •  Java EE defines a Programming Model and an Infrastructure
  • 4. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 4 Bundling Programming Model and Infrastructure •  Bundling leads to some problems •  To upgrade the programming model you need to upgrade the infrastructure •  Operations will not like that idea •  You are limited to a certain infrastructure – what do you do concerning OSGi? •  You only get the benefit from OSGi if you use its non OSGi deployment model •  Users realize how flexible they are using Spring
  • 5. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 5 Spring s Impact on Java EE Production Environment Jaav EE Application Server Servlet Container • Connection mgmt. • Clustering • Deployment management EJB Container EAR EJB WAR Production Environment Tomcat Production Environment Java EE Application Server Servlet Container • Connection mgmt. • Clustering • Deployment management WAR Spring Powered Application Spring WAR Spring Powered Application Spring Servlet Container • Connection mgmt. • Clustering • Deployment management
  • 6. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 6 So: What is the advantage of Spring over Java EE 6? •  Type error: Cannot compare infrastructure + programming model to programming model •  But seriously… •  Spring actually exists – Java EE 6 is still being standardized •  You don't need to upgrade your server (many are still on Java EE 5) •  Actually this question is not important to many: They don't run on Java EE anyway
  • 7. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 7 0% 10% 20% 30% 40% 50% 60% 70% Java Application Server Usage, Source: 2008 Evans Data Survey Spring ApplicationsWebLogic 26% JBoss 38% WebSphere 43% Apache Tomcat 68% Today s De Facto Standards Spring and Tomcat •  Obviously the Java EE platform is often not needed •  A Servlet container is enough •  …and too complex
  • 8. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 8 Is Spring + Servlet container as powerful as Java EE? •  "Classic" features of a Java EE server Feature Spring Solution Transactions No real 2PC but smart solutions for many scenarios Security Spring Security is much better Distribution Not too important any more Spring Remoting offers even more features Persistence Java EE's persistence (JPA) can be used – and several other Naming Supported by Dependency Injection Connection / Resource Pooling Supported by Servlet Containers and DataSource implementations
  • 9. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 9 So… •  Let's add transaction support (JTA) to Tomcat •  Then we have a full blown Application Server •  But Tomcat is very successful already •  …and Spring offers solutions –  for O/R mappers –  for JMS + a DataSource •  JTA seems to be a not too important •  Is there anything else we need to think about? •  Infrastructure is not just for developers!
  • 10. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 10 Operations •  Operations cares about –  monitoring –  administration •  They should be able to look into application •  Usually there is more than one Application Server – how can you handle larger installations? •  Individual updates of parts of an application are important •  Virtualization / Cloud
  • 11. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring Enterprise - Looking into Applications
  • 12. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 12 Your Application Spring Enterprise - Looking into Applications •  Certified Spring •  Instrumented Spring –  Monitor Spring apps across infrastructure •  JMX flows into Management Application –  Track app performance •  Just different JARs •  No code changes Enterprise Management Application JMX
  • 13. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Demo: Spring Enterprise
  • 14. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Handling large clusters
  • 15. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 15 Cluster •  Usually there is more than one Tomcat server in an installation •  How can you manage them? •  Ideally centralized
  • 16. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 16 tc Server Tomcat Enterprise support Distributed Operations Diagnostics Enterprise Capabilities Tomcat you know. Enterprise capabilities you need. SpringSource tc Server
  • 17. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 17 Product Architecture tc Server machine 1 Hyperic Agent Mgmt Server Hyperic Server Hyperic Web Console Other Manageable Items Apache http Server Apache Tomcat ActiveMQ JVM Operating Systems Scripts Configs Inventory, Metric, Audit, … tc Server tc Server machine n Hyperic Agent Configs tc Server
  • 18. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 18 tc Server •  Binaries almost unchanged – no lock in •  Centralized monitoring and administration •  Groups of server allow to deal with a group of servers – not just one –  Start / stop / restart –  Deployment –  Configuration including JVM options •  Easy operations of large Tomcat installations
  • 19. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Demo: tc Server
  • 20. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 20 Demo WhiteRabbit Hyperic Agent Ubuntu1 Hyperic Server Hyperic Web Console Inventory, Metric, Audit, … tc Server Ubuntu1 Hyperic Agent tc Server
  • 21. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Updating parts of an application
  • 22. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 22 dm Server •  Modularization is key to maintainable software •  Modularization at runtime gives more power to Operations •  Updates of parts of the application •  Determining the source of an error •  etc •  On the client and in the embedded world OSGi has succeeded as a standard for modularization •  OSGi enters the server market…
  • 23. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. OSGi
  • 24. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 24 It's a module system •  Partition a system into a number of modules – "bundles" •  Dynamic: Bundles can be installed, started, stopped, uninstalled and updated •  ...at runtime •  better operations •  Strict visibility rules •  Resolution process satisfies dependencies of a module •  Understands versioning
  • 25. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 25 It's even service-oriented •  Bundles can publish services… dynamically! •  Service Registry allows other bundles to consume services •  Services come and go at runtime –  … transparently when using Spring-DM
  • 26. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 26 OSGi Bundle •  The fundamental unit of deployment and modularity in OSGi •  Just a JAR file –  with additional entries in META-INF/MANIFEST.MF •  Common manifest headers: –  Bundle-SymbolicName –  Bundle-Version –  Bundle-Name –  Bundle-ManifestVersion –  Bundle-Vendor
  • 27. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 27 Import / Export -Package Declares package-level dependencies of your bundle. Import-Package: com.xyz.foo; Import-Package: com.xyz.foo;version="1.0.3" Import-Package: com.xyz.foo;version="[1.0.3,1.0.3]" Import-Package: com.xyz.foo;version="[1.0.3,1.1.0)", com.xyz.bar;version="[1.0.3,2.0.0)" Export-Package: com.xyz.foo Export-Package: com.xyz.foo;version="1.0.5" >= 1.0.3; e.g., 1.0.3.GA, 1.0.4, etc.
  • 28. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring Dynamic Modules & SpringSource dm Server
  • 29. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 29 Spring-DM: ApplicationContext •  Configuration files in /META-INF/spring •  Automatically merged •  ..and ApplicationContext is created
  • 30. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 30 Service export and import <beans ...> <osgi:service ref="customerDAO" interface="dao.ICustomerDAO" /> <osgi:reference id="dataSource" interface="javax.sql.DataSource" /> </beans>
  • 31. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 31 Service export and import •  Dynamic services automatically dealt with •  i.e. method calls are buffered •  Purely declarative •  No dependencies on OSGi in the code •  No resource leaks •  Not solved in Spring Dynamic Modules: –  Easy import of libraries –  Using JPA or Hibernate in OSGi –  Seamless Web Support –  Notion of an application •  Enter dm Server
  • 32. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 32 dm Server Platform • Modular profiles • Bundle repository • Library provisioning • Serviceability – FFDC – Logging / Tracing • Built on Equinox • Modular architecture – Subsystems – Bundles • Small footprint WAR Personality Web Module Personality Bundle Personality Tomcat Deployer Management Dynamic Modules Kernel Equinox JVM
  • 33. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 33 Bundles for the example •  Web •  Service •  API: only interfaces and domain classes –  Implementation can be exchanged •  Could add infrastructure: DataSource / PlatformTransactionManager API Service Web Package Import
  • 34. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 34 Bundles & Types •  Only dependencies to the API •  Therefore: implementation can be exchanged even at runtime •  No direct dependencies to any implementation •  Not shown: dependencies to external bundles •  … can be installed in dm Server •  … modular middleware!
  • 35. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 35 Bundles & Services Services: Publish / Consume api service web Service Registry
  • 36. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 36 Bundles & Services •  Infrastructure can use the same principle as application services •  i.e. DataSource and PlatformTransactionManager are just another service •  Can I still run on plain Java EE? •  Yes: instead of OSGi Service directly inject Spring Beans •  no more more dynamic services / modularization •  No code change needed •  Application can run on Java EE or OSGi
  • 37. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 37 PAR •  Packaging format for all modules in an application •  JAR with Application-* manifest headers •  Single unit: deploy, refresh, undeploy •  Application boundaries –  Scoping of types and services –  DataSource does not leak out of the application –  Hibernate can change domain objects API Service Web Package Import Spring Taglibs Application
  • 38. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Web Migration: From WAR to PAR
  • 39. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 39 Shared Libraries WAR Web Application Deployment Options •  Standard Java EE WAR –  supported on dm Server as is –  converted into an OSGi bundle •  Shared Libraries WAR –  WAR + OSGi package imports –  Eradicate library bloat of monolithic Java EE –  WARs •  Shared Services WAR –  Uses OSGi services with Spring's <osgi:reference> •  Web Module Standard WAR libs services Bundle Repository Shared Services WAR OSGi Service Registry services
  • 40. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Roadmap
  • 41. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 41 dm Server 2.0 Roadmap •  SpringSource dm Server 2.0: 2009 •  Cloning bundles –  solves problems around static variables and more •  Shared Repository –  make a repository available to other servers •  Plan Files –  Define an application as a collection of bundles –  Does not contain the bundles, more flexible •  Distributed and improved Management –  operation on a group of servers –  like tc Server for Tomcat •  Modular Web Applications
  • 42. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 42 Support for Enterprise OSGi Standards •  RFC 66: Web Container for OSGi (RI based on dm Server) •  RFC 119: Distributed OSGi •  RFC 124: Blueprint Service (RI based on Spring- DM) •  RFC 139: JMX interface for OSGi •  RFC 142: JNDI and OSGi integration
  • 43. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 43 Note: OSGi has an impact on operations •  New deployment model •  Updates of bundles possible •  How much less regression testing do you actually do? •  Is redeploying just a part of an application OK for operations?
  • 44. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 44 Virtualization / Cloud •  Deployment blueprints define machines and their characteristics •  vApp define a deployment format based on such blueprints •  dm Server, tc Server etc will be configurable using vApp properties (e.g. ports) •  vApps can be pre defined – just add your application •  vApps can optimize for network traffic or availability •  Deployment and set up of the VMs is trivial •  …in your private or a public cloud
  • 45. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Summary
  • 46. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. 46 Summary •  Spring is a portable programming model •  This help the move from full blown Java EE to Servlet containers •  An important part of infrastructures is support for operations •  Issues: –  Monitoring e.g. Spring Enterprise –  Cluster e.g. tc Server –  Modularization at runtime e.g. OSGi / dm Server –  Virtualization / Cloud
  • 47. Copyright 2009 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Questions? Eberhard Wolff eberhard.wolff@springsource.com http://SpringSource.com Run   Manage   Build