SlideShare una empresa de Scribd logo
1 de 17
Enterprise Java in 2012 and Beyond
A Spring Perspective
Jürgen Höller, Principal Engineer, SpringSource




                                                  © 2012 SpringSource, A division of VMware. All rights reserved
Deployment Platforms: Becoming More Diverse




       Application   Application   Application




       Framewor      Framewor      Framewor
           ks            ks            ks
         + Libs        + Libs        + Libs




       Java EE                       Cloud
        Server       Tomcat        Platform




                                                 3
The State of Deployment Platforms in 2012
Java EE servers having moved on to Java EE 6
 GlassFish 3
 JBoss 7
 WebSphere 8


Apache Tomcat having moved on to Tomcat 7
 Servlet 3.0 based (Java EE 6 level)


Cloud platforms becoming a serious option for regular
 Java web application deployment
 Google App Engine: Jetty++
 Amazon Elastic Beanstalk: Tomcat++
 VMware's CloudFoundry: Tomcat++


                                                        4
Cloud Platforms
a.k.a. „Platform as a Service“ (PaaS)
 „public cloud“: available through a shared, public host
 „private cloud“: virtualization platform inside a corporate data center


Typically: a pre-installed web container with additional services
 datastores (not necessarily a relational database!)
 messaging, clustered sessions, clustered cache, etc


The aforementioned Google App Engine and Amazon Elastic
 Beanstalk are good reference examples
 common ground: WAR deployment, Servlet API, JPA – ignoring Java EE?
 several further offerings to show their promise in the course of 2012




                                                                           5
CloudFoundry: VMware's Open Cloud Platform




                                             6
Wide Variety of Data and Datastores
Not all data resides in relational databases
 cloud environments often suggest alternatives for scalability reasons
 HBase, Redis, Mongo, Neo4j, etc


Distributed caches add challenges as well
 not least of it all in terms of application-level access patterns
 GemFire, Coherence, Infinispan, etc


Hardly any standardization available
 JSR-107 – for caching – did not make progress for a long, long time
 finally getting picked up in Java EE 7, but again only for caching
 alternative datastore space is too diverse for standardization




                                                                         7
Wide Variety of Web Clients
More and more client-side web technologies
 HTML 5 as a next-generation standard for desktop and mobile browsers
 native Android and iOS clients on smartphones and tablets


Server-side state to be minimized or even removed completely
 in particular: no server-side user interface state
 strictly controlled user session state


JSF's state-centric approach not a great fit anymore
 except for special kinds of applications (which it remains very useful for)
 web application backends and web services based on JAX-RS / MVC style
 nevertheless: JSF keeps evolving – JSF 2.2 coming up in 2012




                                                                               8
Java SE 7: Concurrent Programming
A challenge: concurrent programming in a multi-core world
 user-level APIs and recommended programming styles?


Servers with more cores than concurrent requests
 how to actually use your processor power in such a scenario?


Java SE 7: java.util.concurrent.ForkJoinPool
 specialized ForkJoinPools to be locally embedded within the application
 different kind of pool, separate from regular Runnable-oriented Executors


Oracle's OpenJDK 7 released in summer 2011
 IBM JDK 7 followed surprisingly soon after



                                                                             9
Scala & Akka: Concurrent Programming Revisited
Scala as a next-generation language on the JVM
 combines object orientation with functional programming
 particularly well suited for concurrent programming
 integrates reasonably well with existing Java APIs


Akka as an actor-based framework for Scala and Java
 event-driven architectures
   strong architectural impact (if you fully go for it)
 different approach towards concurrent programming
   raises the concurrency abstraction level (but not too much)
 provides Scala and Java APIs
   however, being most convenient with Scala message passing



                                                                 10
Java EE Revisited
How relevant is Java EE 6 in the context of recent trends?
 as usual, Java EE 6 tends to solve yesterday's problems...
 the fate of specifications with a multi-year expert group process
 even worse, EE server vendors take years to implement a full platform release


Some recent trends change this industry quite rapidly and radically
 cloud platforms challenge the notion of dedicated servers
 alternative datastores challenge relational databases and their access APIs
 concurrent programming trends do not match traditional EE assumptions


Java EE 7 to the rescue in 2012?
 specification itself having been delayed until Q2 2013
 not even talking about the availability of server products


                                                                                 11
Key Elements of Spring: Ready for 2012 & Beyond




                   on
               cti
            nje
              yI




                          AO
            nc



               Simple
                Simple
         de




                            P
      en




               Objects
       p




                Object
    De




      Portable Service Abstractions
                                      More important than ever!


                                                                  12
Environment Abstraction
Grouping bean definitions for activation in specific environments
e.g. different stages: development, testing, production
e.g. different deployment environments: Tomcat, EE server, Cloud Foundry
  resolution of placeholders from environment-specific property sources


Environment association of specific bean definitions
  XML 'profile' attribute on <beans> element
  @Profile annotation on configuration classes
  @Profile annotation on individual component classes


Ideally: no need to touch the deployment unit across different
stages/environments




                                                                           13
Cache Abstraction
CacheManager and Cache abstraction
in org.springframework.cache
which up until 3.0 just contained EhCache support
particularly important with the rise of distributed caching
not least of it all: in cloud environments



Backend adapters for EhCache, GemFire, Coherence, etc
EhCache adapter shipping with Spring core
plugging in custom adapters if necessary


Specific cache setup per environment profile?
potentially adapting to a runtime-provided cloud caching service




                                                                   14
Spring Web Applications on Servlet 3.0
/**
 * Automatically detected and invoked on startup by Spring's
   ServletContainerInitializer. May register listeners, filters,
   servlets etc against the given Servlet 3.0 ServletContext.
 */
public class MyWebAppInitializer implements WebApplicationInitializer {


      public void onStartup(ServletContext sc) throws ServletException {
          // Create the 'root' Spring application context
          AnnotationConfigWebApplicationContext root =
                  new AnnotationConfigWebApplicationContext();
          root.scan("com.mycompany.myapp");
          root.register(FurtherConfig.class);


          // Manages the lifecycle of the root application context
          sc.addListener(new ContextLoaderListener(root));
          ...
      }
}


                                                                           15
Beyond Spring Framework: Recent Key Projects
Spring Data
 support for many alternative datastores
 GemFire, Hadoop, Redis, Mongo, Neo4j


Spring AMQP
 messaging beyond JMS, e.g. for RabbitMQ


Spring Mobile & Spring Android
 conveniences for mobile app development


Spring Social
 programmatic access to social networks


                                               16
Summary
Disruptive forces approaching the Enterprise Java space
 deployment to cloud platforms
 access to alternative datastores
 HTML 5 based web architectures
 concurrent programming challenges


Common ground in deployment platforms is once again unclear
 selected specifications (Java SE, Servlet, JPA) as one key ingredient
 'proprietary' APIs and embedded frameworks as another key ingredient


Either way, there are exciting times ahead of us. Let's embrace them!




                                                                         17

Más contenido relacionado

La actualidad más candente

Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
Д. Ганаа
 
What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009
Stefane Fermigier
 
Ankara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADFAnkara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADF
Ankara JUG
 
Travelling Light for the Long Haul - Ian Robinson
Travelling Light for the Long Haul -  Ian RobinsonTravelling Light for the Long Haul -  Ian Robinson
Travelling Light for the Long Haul - Ian Robinson
mfrancis
 

La actualidad más candente (17)

Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
 
Java Spring
Java SpringJava Spring
Java Spring
 
JavaOne 2011: Migrating Spring Applications to Java EE 6
JavaOne 2011: Migrating Spring Applications to Java EE 6JavaOne 2011: Migrating Spring Applications to Java EE 6
JavaOne 2011: Migrating Spring Applications to Java EE 6
 
Java EE7 Demystified
Java EE7 DemystifiedJava EE7 Demystified
Java EE7 Demystified
 
Magic Quadrant for On-Premises Application Platforms
Magic Quadrant for On-Premises Application PlatformsMagic Quadrant for On-Premises Application Platforms
Magic Quadrant for On-Premises Application Platforms
 
What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009What's new in Nuxeo 5.2? - Solutions Linux 2009
What's new in Nuxeo 5.2? - Solutions Linux 2009
 
Ankara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADFAnkara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADF
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013
 
OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010
OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010
OSGi & Java EE in GlassFish @ Silicon Valley Code Camp 2010
 
Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Have You Seen Java EE Lately?
Have You Seen Java EE Lately?
 
Dinesh Wp Siebel Crm To Fusion Crm
Dinesh Wp  Siebel Crm To Fusion CrmDinesh Wp  Siebel Crm To Fusion Crm
Dinesh Wp Siebel Crm To Fusion Crm
 
Java EE7 in action
Java EE7 in actionJava EE7 in action
Java EE7 in action
 
GlassFish 3.1 at JCertif 2011
GlassFish 3.1 at JCertif 2011GlassFish 3.1 at JCertif 2011
GlassFish 3.1 at JCertif 2011
 
All the Java ADF beginners need to know - part1
All the Java ADF beginners need to know - part1All the Java ADF beginners need to know - part1
All the Java ADF beginners need to know - part1
 
Java vs .Net
Java vs .NetJava vs .Net
Java vs .Net
 
What's New in WebLogic 12.1.3 and Beyond
What's New in WebLogic 12.1.3 and BeyondWhat's New in WebLogic 12.1.3 and Beyond
What's New in WebLogic 12.1.3 and Beyond
 
Travelling Light for the Long Haul - Ian Robinson
Travelling Light for the Long Haul -  Ian RobinsonTravelling Light for the Long Haul -  Ian Robinson
Travelling Light for the Long Haul - Ian Robinson
 

Destacado

Destacado (8)

SQL Injection & Cross Site Scripting, by Stefano Santomauro
SQL Injection & Cross Site Scripting, by Stefano Santomauro SQL Injection & Cross Site Scripting, by Stefano Santomauro
SQL Injection & Cross Site Scripting, by Stefano Santomauro
 
To be relational, or not to be relational? That's *not* the question!
To be relational, or not to be relational? That's *not* the question! To be relational, or not to be relational? That's *not* the question!
To be relational, or not to be relational? That's *not* the question!
 
GIT: a Gentle InTroduction
GIT: a Gentle InTroductionGIT: a Gentle InTroduction
GIT: a Gentle InTroduction
 
Easy Driver
Easy DriverEasy Driver
Easy Driver
 
Internet of Threads (IoTh), di Renzo Davoli (VirtualSquare)
Internet of Threads (IoTh), di  Renzo Davoli (VirtualSquare)  Internet of Threads (IoTh), di  Renzo Davoli (VirtualSquare)
Internet of Threads (IoTh), di Renzo Davoli (VirtualSquare)
 
Java EE facile con Spring Boot - Luigi Bennardis - Codemotion Roma 2015
Java EE facile con Spring Boot - Luigi Bennardis - Codemotion Roma 2015Java EE facile con Spring Boot - Luigi Bennardis - Codemotion Roma 2015
Java EE facile con Spring Boot - Luigi Bennardis - Codemotion Roma 2015
 
Master the chaos: from raw data to analytics - Andrea Pompili, Riccardo Rossi...
Master the chaos: from raw data to analytics - Andrea Pompili, Riccardo Rossi...Master the chaos: from raw data to analytics - Andrea Pompili, Riccardo Rossi...
Master the chaos: from raw data to analytics - Andrea Pompili, Riccardo Rossi...
 
Milano Chatbots Meetup - Vittorio Banfi - Bot Design - Codemotion Milan 2016
Milano Chatbots Meetup - Vittorio Banfi - Bot Design - Codemotion Milan 2016 Milano Chatbots Meetup - Vittorio Banfi - Bot Design - Codemotion Milan 2016
Milano Chatbots Meetup - Vittorio Banfi - Bot Design - Codemotion Milan 2016
 

Similar a Enterprise Java in 2012 and Beyond, by Juergen Hoeller

Current state of affairs cloud computing
Current state of affairs   cloud computingCurrent state of affairs   cloud computing
Current state of affairs cloud computing
Chirag Jog
 
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
mfrancis
 
The spring 32 update final
The spring 32 update finalThe spring 32 update final
The spring 32 update final
Joshua Long
 

Similar a Enterprise Java in 2012 and Beyond, by Juergen Hoeller (20)

Introduction To J Boss Seam
Introduction To J Boss SeamIntroduction To J Boss Seam
Introduction To J Boss Seam
 
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)
 
Spring Mvc
Spring MvcSpring Mvc
Spring Mvc
 
Spring 3.1: a Walking Tour
Spring 3.1: a Walking TourSpring 3.1: a Walking Tour
Spring 3.1: a Walking Tour
 
Javascript Client & Server Architectures
Javascript Client & Server ArchitecturesJavascript Client & Server Architectures
Javascript Client & Server Architectures
 
J2ee seminar
J2ee seminarJ2ee seminar
J2ee seminar
 
Frameworks in java
Frameworks in javaFrameworks in java
Frameworks in java
 
Multi client Development with Spring
Multi client Development with SpringMulti client Development with Spring
Multi client Development with Spring
 
Current state of affairs cloud computing
Current state of affairs   cloud computingCurrent state of affairs   cloud computing
Current state of affairs cloud computing
 
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
 
J2EE Batch Processing
J2EE Batch ProcessingJ2EE Batch Processing
J2EE Batch Processing
 
Crx 2.2 Deep-Dive
Crx 2.2 Deep-DiveCrx 2.2 Deep-Dive
Crx 2.2 Deep-Dive
 
WebLogic Developer Experience and Java EE 6
WebLogic Developer Experience and Java EE 6WebLogic Developer Experience and Java EE 6
WebLogic Developer Experience and Java EE 6
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year project
 
Java, app servers and oracle application grid
Java, app servers and oracle application gridJava, app servers and oracle application grid
Java, app servers and oracle application grid
 
java web framework standard.20180412
java web framework standard.20180412java web framework standard.20180412
java web framework standard.20180412
 
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
 
001. Introduction about React
001. Introduction about React001. Introduction about React
001. Introduction about React
 
Spring ppt
Spring pptSpring ppt
Spring ppt
 
The spring 32 update final
The spring 32 update finalThe spring 32 update final
The spring 32 update final
 

Más de Codemotion

Más de Codemotion (20)

Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
 
Pompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending storyPompili - From hero to_zero: The FatalNoise neverending story
Pompili - From hero to_zero: The FatalNoise neverending story
 
Pastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storiaPastore - Commodore 65 - La storia
Pastore - Commodore 65 - La storia
 
Pennisi - Essere Richard Altwasser
Pennisi - Essere Richard AltwasserPennisi - Essere Richard Altwasser
Pennisi - Essere Richard Altwasser
 
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
 
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
 
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
 
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 - Francesco Baldassarri  - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
 
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
 
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
 
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
 
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
 
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
 
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
 
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
 
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
 
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
 
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
 
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
 
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"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 ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Enterprise Java in 2012 and Beyond, by Juergen Hoeller

  • 1.
  • 2. Enterprise Java in 2012 and Beyond A Spring Perspective Jürgen Höller, Principal Engineer, SpringSource © 2012 SpringSource, A division of VMware. All rights reserved
  • 3. Deployment Platforms: Becoming More Diverse Application Application Application Framewor Framewor Framewor ks ks ks + Libs + Libs + Libs Java EE Cloud Server Tomcat Platform 3
  • 4. The State of Deployment Platforms in 2012 Java EE servers having moved on to Java EE 6 GlassFish 3 JBoss 7 WebSphere 8 Apache Tomcat having moved on to Tomcat 7 Servlet 3.0 based (Java EE 6 level) Cloud platforms becoming a serious option for regular Java web application deployment Google App Engine: Jetty++ Amazon Elastic Beanstalk: Tomcat++ VMware's CloudFoundry: Tomcat++ 4
  • 5. Cloud Platforms a.k.a. „Platform as a Service“ (PaaS) „public cloud“: available through a shared, public host „private cloud“: virtualization platform inside a corporate data center Typically: a pre-installed web container with additional services datastores (not necessarily a relational database!) messaging, clustered sessions, clustered cache, etc The aforementioned Google App Engine and Amazon Elastic Beanstalk are good reference examples common ground: WAR deployment, Servlet API, JPA – ignoring Java EE? several further offerings to show their promise in the course of 2012 5
  • 6. CloudFoundry: VMware's Open Cloud Platform 6
  • 7. Wide Variety of Data and Datastores Not all data resides in relational databases cloud environments often suggest alternatives for scalability reasons HBase, Redis, Mongo, Neo4j, etc Distributed caches add challenges as well not least of it all in terms of application-level access patterns GemFire, Coherence, Infinispan, etc Hardly any standardization available JSR-107 – for caching – did not make progress for a long, long time finally getting picked up in Java EE 7, but again only for caching alternative datastore space is too diverse for standardization 7
  • 8. Wide Variety of Web Clients More and more client-side web technologies HTML 5 as a next-generation standard for desktop and mobile browsers native Android and iOS clients on smartphones and tablets Server-side state to be minimized or even removed completely in particular: no server-side user interface state strictly controlled user session state JSF's state-centric approach not a great fit anymore except for special kinds of applications (which it remains very useful for) web application backends and web services based on JAX-RS / MVC style nevertheless: JSF keeps evolving – JSF 2.2 coming up in 2012 8
  • 9. Java SE 7: Concurrent Programming A challenge: concurrent programming in a multi-core world user-level APIs and recommended programming styles? Servers with more cores than concurrent requests how to actually use your processor power in such a scenario? Java SE 7: java.util.concurrent.ForkJoinPool specialized ForkJoinPools to be locally embedded within the application different kind of pool, separate from regular Runnable-oriented Executors Oracle's OpenJDK 7 released in summer 2011 IBM JDK 7 followed surprisingly soon after 9
  • 10. Scala & Akka: Concurrent Programming Revisited Scala as a next-generation language on the JVM combines object orientation with functional programming particularly well suited for concurrent programming integrates reasonably well with existing Java APIs Akka as an actor-based framework for Scala and Java event-driven architectures strong architectural impact (if you fully go for it) different approach towards concurrent programming raises the concurrency abstraction level (but not too much) provides Scala and Java APIs however, being most convenient with Scala message passing 10
  • 11. Java EE Revisited How relevant is Java EE 6 in the context of recent trends? as usual, Java EE 6 tends to solve yesterday's problems... the fate of specifications with a multi-year expert group process even worse, EE server vendors take years to implement a full platform release Some recent trends change this industry quite rapidly and radically cloud platforms challenge the notion of dedicated servers alternative datastores challenge relational databases and their access APIs concurrent programming trends do not match traditional EE assumptions Java EE 7 to the rescue in 2012? specification itself having been delayed until Q2 2013 not even talking about the availability of server products 11
  • 12. Key Elements of Spring: Ready for 2012 & Beyond on cti nje yI AO nc Simple Simple de P en Objects p Object De Portable Service Abstractions More important than ever! 12
  • 13. Environment Abstraction Grouping bean definitions for activation in specific environments e.g. different stages: development, testing, production e.g. different deployment environments: Tomcat, EE server, Cloud Foundry resolution of placeholders from environment-specific property sources Environment association of specific bean definitions XML 'profile' attribute on <beans> element @Profile annotation on configuration classes @Profile annotation on individual component classes Ideally: no need to touch the deployment unit across different stages/environments 13
  • 14. Cache Abstraction CacheManager and Cache abstraction in org.springframework.cache which up until 3.0 just contained EhCache support particularly important with the rise of distributed caching not least of it all: in cloud environments Backend adapters for EhCache, GemFire, Coherence, etc EhCache adapter shipping with Spring core plugging in custom adapters if necessary Specific cache setup per environment profile? potentially adapting to a runtime-provided cloud caching service 14
  • 15. Spring Web Applications on Servlet 3.0 /** * Automatically detected and invoked on startup by Spring's ServletContainerInitializer. May register listeners, filters, servlets etc against the given Servlet 3.0 ServletContext. */ public class MyWebAppInitializer implements WebApplicationInitializer { public void onStartup(ServletContext sc) throws ServletException { // Create the 'root' Spring application context AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext(); root.scan("com.mycompany.myapp"); root.register(FurtherConfig.class); // Manages the lifecycle of the root application context sc.addListener(new ContextLoaderListener(root)); ... } } 15
  • 16. Beyond Spring Framework: Recent Key Projects Spring Data support for many alternative datastores GemFire, Hadoop, Redis, Mongo, Neo4j Spring AMQP messaging beyond JMS, e.g. for RabbitMQ Spring Mobile & Spring Android conveniences for mobile app development Spring Social programmatic access to social networks 16
  • 17. Summary Disruptive forces approaching the Enterprise Java space deployment to cloud platforms access to alternative datastores HTML 5 based web architectures concurrent programming challenges Common ground in deployment platforms is once again unclear selected specifications (Java SE, Servlet, JPA) as one key ingredient 'proprietary' APIs and embedded frameworks as another key ingredient Either way, there are exciting times ahead of us. Let's embrace them! 17