SlideShare a Scribd company logo
From VMs to Containers
Decompose and Migrate
Old Legacy Java EE Applications
The Evolution Doesn’t Stay
VMs vs Containers on Bare Metal
Density and Isolation
Elasticity
Scalability
Unlike VMs, resizing of resource limits in Containers:
● can be performed without reboot of the running instances
● easier achieved on the fly
● cheaper and faster than moving to larger VMs
Efficiency
Virtual Machines Containers on Bare Metal
Container technology unlocks a new level of flexibility – resources that are not consumed within the
limit boundaries are automatically shared with other containers running on the same hardware node.
https://www.infoq.com/articles/java-cloud-cost-reduction
Feel the Difference
Resources,RAM
Used Resources vs Scaling Limits
Templates Packaging
Improved CI/CD
Decomposition
Splitting large monolithic application topology into small logical pieces to work with
them independently
Can Seem Problematic with Legacy Applications
Picture by Daniel Story
But Reachable with the Right Plan and Tools
Tame Your
Legacy Software
Dragon!
Let’s See How This Works with GlassFish
GlassFish Server in VM
Scaling GlassFish Server in VM
● Provision a new VM with preconfigured GlassFish template
● Configure SSH connect and add this VM as an SSH Node to the DAS
● Create a new remote Worker Instance on a Node via DAS UI or asadmin CLI
Application Container + System Container
Pros
● IP, hostname and local stored
data survive downtimes
● No need in a port mapping
● Better isolation and virtualization
of resources
● Compatible with SSH based
config tools
● Provide live migration of memory
state
Cons
● Start-up time is slower
GlassFish in Container
https://github.com/oracle/docker-images/tree/master/GlassFish/5.0
Scaling GlassFish in Containers
Worker nodes can be added / removed automatically as well as can be attached to
DAS node using container orchestration platform and a set of automation scripts
Load Balancer
Adding load balancing container in front of our cluster
Database Connection
● Connect to the current database in VM
● OR decompose database to containers to gain the benefits of easy scaling
and better resource utilization
DEMO
Scenario
● Create standalone GlassFish
● Create MySQL master-slave database cluster
● Connect GlassFish to Databases
● Deploy application
● Scale GlassFish and add NGINX load balancer
● Clone the environment
● Install Traffic Distributor and connect it to the two envs (original and clone)
Create Standalone GlassFish Server
Choose GlassFish and set the limits
Creating the environment…
Standalone Server > Successfully Created
Float Menu > Admin panel > Login
Enter credentials
Credentials are in your email box
Check the nodes
Create MySQL Cluster
MySQL Cluster + ProxySQL (PX)
Import JPS manifest
https://github.com/jelastic-jps/mysql-cluster/tree/master/mysql-cluster-orchestrator
Give a name and press “Install”
Your credentials to DB in UI and email box
Download test SQL dump
NetBeans Sample App for Connection to MySQL
https://netbeans.org/kb/docs/web/mysql-webapp.html
Log in to phpMyAdmin
Create a new database
Import SQL dump
Check the result
Set up JDBC connection pool
Set up JDBC connection pool
DatabaseName=MyNewDatabase
ServerName=[db hostname]
URL=jdbc:mysql://[db hostname]:3306/MyNewDatabase
Url=[same as URL]
User=[db user]
Password=[db password]
Check JDBC connection pools
Edit JDBC resource
Simple Decomposed Topology
Download the sample application
Download source and build “war” archive
https://netbeans.org/kb/docs/web/mysql-webapp.html
Upload and deploy application
Press “Deploy”
Float menu > Open in browser
Good example of a legacy app 
Delve into the depths of your subconscious 
Check location of the deployed application
Scale the Topology
Float menu > Change the topology
Add one more GF node (1) and extra resources (2)
1
2
Log in to GlassFish admin panel
Check the nodes
Go to the cluster1 > Check the GMS
Check location of the deployed application
Clone the Environment and Add Traffic Distributor (TD)
Float menu > Clone environment
Press “Clone”
Environment has been cloned
Log in to GF admin panel of the cloned environment
Check the nodes
Marketplace > Traffic Distributor (TD)
Install TD
Press “Open in browser”
Enjoy Blue-green deployment, HA or A/B testing
From VMs to Containers: Decompose and Migrate Old Legacy JavaEE Application
Get in touch to find out more
@siruslan
@Jelastic

More Related Content

What's hot (20)

PPTX
Docker Practice in Alibaba Cloud by Li Yi (Mark) & Zuhe Li (Sogo)
Docker, Inc.
 
PDF
Microservices + Events + Docker = A Perfect Trio by Docker Captain Chris Rich...
Docker, Inc.
 
PPTX
Structured Container Delivery by Oscar Renalias, Accenture
Docker, Inc.
 
PDF
DCSF19 Container Security: Theory & Practice at Netflix
Docker, Inc.
 
PDF
Infinit's Next Generation Key-value Store - Julien Quintard and Quentin Hocqu...
Docker, Inc.
 
ODP
Practical Container Security by Mrunal Patel and Thomas Cameron, Red Hat
Docker, Inc.
 
PPTX
Containers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
Docker, Inc.
 
PPTX
DockerCon 16 General Session Day 1
Docker, Inc.
 
PPTX
Kubernetes your tests! automation with docker on google cloud platform
LivePerson
 
PPTX
Adf with docker
Eugene Fedorenko
 
PDF
Rohit yadav cloud stack internals
ShapeBlue
 
PPT
Sebastien goasguen cloud stack the next year
ShapeBlue
 
PDF
Azure Kubernetes Service - benefits and challenges
Wojciech Barczyński
 
PPTX
Microservices with containers in the cloud
Eugene Fedorenko
 
PPTX
Docker for Ops: Docker Networking Deep Dive, Considerations and Troubleshooti...
Docker, Inc.
 
PDF
Microservices Docker @Bonn Agile
Timo Derstappen
 
PDF
Docker Enterprise Edition: Building a Secure Supply Chain for the Enterprise ...
Docker, Inc.
 
PDF
Build & Deploy Multi-Container Applications to AWS
Docker, Inc.
 
PPTX
How to build a SaaS solution in 60 days
Brett McLain
 
PPTX
Intro to kubernetes
Elad Hirsch
 
Docker Practice in Alibaba Cloud by Li Yi (Mark) & Zuhe Li (Sogo)
Docker, Inc.
 
Microservices + Events + Docker = A Perfect Trio by Docker Captain Chris Rich...
Docker, Inc.
 
Structured Container Delivery by Oscar Renalias, Accenture
Docker, Inc.
 
DCSF19 Container Security: Theory & Practice at Netflix
Docker, Inc.
 
Infinit's Next Generation Key-value Store - Julien Quintard and Quentin Hocqu...
Docker, Inc.
 
Practical Container Security by Mrunal Patel and Thomas Cameron, Red Hat
Docker, Inc.
 
Containers: Life Beyond Microservices? by Sushil Kumar, Robin Systems
Docker, Inc.
 
DockerCon 16 General Session Day 1
Docker, Inc.
 
Kubernetes your tests! automation with docker on google cloud platform
LivePerson
 
Adf with docker
Eugene Fedorenko
 
Rohit yadav cloud stack internals
ShapeBlue
 
Sebastien goasguen cloud stack the next year
ShapeBlue
 
Azure Kubernetes Service - benefits and challenges
Wojciech Barczyński
 
Microservices with containers in the cloud
Eugene Fedorenko
 
Docker for Ops: Docker Networking Deep Dive, Considerations and Troubleshooti...
Docker, Inc.
 
Microservices Docker @Bonn Agile
Timo Derstappen
 
Docker Enterprise Edition: Building a Secure Supply Chain for the Enterprise ...
Docker, Inc.
 
Build & Deploy Multi-Container Applications to AWS
Docker, Inc.
 
How to build a SaaS solution in 60 days
Brett McLain
 
Intro to kubernetes
Elad Hirsch
 

Similar to From VMs to Containers: Decompose and Migrate Old Legacy JavaEE Application (20)

PDF
Developing and deploying windows azure applications
Manish Corriea
 
PDF
Velocity NYC 2016 - Containers @ Netflix
aspyker
 
PDF
Meteor South Bay Meetup - Kubernetes & Google Container Engine
Kit Merker
 
PPTX
Cas implementation at oakland university
bpowell29a
 
PDF
Build your private cloud with paa s using linuxz cover story enterprise tech ...
Elena Nanos
 
PPTX
Drilett aws vpc_presentation_shared
David Rilett
 
PDF
Connect + Docker + AWS = Bitbucket Pipelines
Atlassian
 
PDF
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
WebStackAcademy
 
PPTX
Gaming across multiple devices
Patric Boscolo
 
DOCX
Containerization Report
Jatin Chauhan
 
PDF
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld
 
PDF
Containerized Storage for Containers: Why, What and How OpenEBS Works
Matt Baldwin
 
PPTX
2014.11.14 Data Opportunities with Azure
Marco Parenzan
 
PDF
Prod-Like Integration Testing for Distributed Containerized Applications
VMware Tanzu
 
PDF
What should I do now?! JCS for WebLogic Admins
Simon Haslam
 
PPTX
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Microsoft
 
PPTX
Java and windows azure cloud service
Jeffray Huang
 
PPTX
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
PDF
Easy integration of Bluemix services with your applications
Jack-Junjie Cai
 
PPTX
Microsoft Azure Cloud Basics Tutorial
IIMSE Edu
 
Developing and deploying windows azure applications
Manish Corriea
 
Velocity NYC 2016 - Containers @ Netflix
aspyker
 
Meteor South Bay Meetup - Kubernetes & Google Container Engine
Kit Merker
 
Cas implementation at oakland university
bpowell29a
 
Build your private cloud with paa s using linuxz cover story enterprise tech ...
Elena Nanos
 
Drilett aws vpc_presentation_shared
David Rilett
 
Connect + Docker + AWS = Bitbucket Pipelines
Atlassian
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
WebStackAcademy
 
Gaming across multiple devices
Patric Boscolo
 
Containerization Report
Jatin Chauhan
 
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld
 
Containerized Storage for Containers: Why, What and How OpenEBS Works
Matt Baldwin
 
2014.11.14 Data Opportunities with Azure
Marco Parenzan
 
Prod-Like Integration Testing for Distributed Containerized Applications
VMware Tanzu
 
What should I do now?! JCS for WebLogic Admins
Simon Haslam
 
Java dans Windows Azure Cloud Services, big data avec hd insight et les nouve...
Microsoft
 
Java and windows azure cloud service
Jeffray Huang
 
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
Easy integration of Bluemix services with your applications
Jack-Junjie Cai
 
Microsoft Azure Cloud Basics Tutorial
IIMSE Edu
 
Ad

More from Jelastic Multi-Cloud PaaS (20)

PDF
Running Projects in Application Containers, System Containers & VMs - Jelasti...
Jelastic Multi-Cloud PaaS
 
PDF
Running Java Applications inside Kubernetes with Nested Container Architectur...
Jelastic Multi-Cloud PaaS
 
PDF
MariaDB Auto-Clustering, Vertical and Horizontal Scaling within Jelastic PaaS
Jelastic Multi-Cloud PaaS
 
PDF
Scaling Jakarta EE Applications Vertically and Horizontally with Jelastic PaaS
Jelastic Multi-Cloud PaaS
 
PDF
State of Java Elasticity. Tuning Java Efficiency - GIDS.JAVA LIVE 2020
Jelastic Multi-Cloud PaaS
 
PDF
Kubernetes and Nested Containers: Enhanced 3 Ps (Performance, Price and Provi...
Jelastic Multi-Cloud PaaS
 
PDF
WordPress Cluster for Enterprise High-Availability and On-Demand Scaling
Jelastic Multi-Cloud PaaS
 
PDF
Elastic JVM for Scalable Java EE Applications Running in Containers #Jakart...
Jelastic Multi-Cloud PaaS
 
PDF
Choosing Right Garbage Collector to Increase Efficiency of Java Memory Usage
Jelastic Multi-Cloud PaaS
 
PDF
SaaSification in Action. Attracting Software Vendors with Easy Transformation
Jelastic Multi-Cloud PaaS
 
PDF
State of the Art UI - Overview of Jelastic PaaS Functionality
Jelastic Multi-Cloud PaaS
 
PDF
How to Make Money Solving 5 Major Problems of Cloud Hosting Customers
Jelastic Multi-Cloud PaaS
 
PDF
Multi-Cloud Lightweight Platform as a Service
Jelastic Multi-Cloud PaaS
 
PDF
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
Jelastic Multi-Cloud PaaS
 
PDF
Cloud Hosting Business in Africa: Market Specifics and Ways to Grow
Jelastic Multi-Cloud PaaS
 
PDF
Automated scaling of microservice stacks for JavaEE applications - JEEConf 2017
Jelastic Multi-Cloud PaaS
 
PDF
Jelastic DevOps Platform Product Overview for Service Providers
Jelastic Multi-Cloud PaaS
 
PPSX
Auto Scaling for Multi-Tier Containers Topology
Jelastic Multi-Cloud PaaS
 
PDF
Jelastic DevOps Platform Product Overview for ISVs
Jelastic Multi-Cloud PaaS
 
PDF
DevOps Epoch 2016
Jelastic Multi-Cloud PaaS
 
Running Projects in Application Containers, System Containers & VMs - Jelasti...
Jelastic Multi-Cloud PaaS
 
Running Java Applications inside Kubernetes with Nested Container Architectur...
Jelastic Multi-Cloud PaaS
 
MariaDB Auto-Clustering, Vertical and Horizontal Scaling within Jelastic PaaS
Jelastic Multi-Cloud PaaS
 
Scaling Jakarta EE Applications Vertically and Horizontally with Jelastic PaaS
Jelastic Multi-Cloud PaaS
 
State of Java Elasticity. Tuning Java Efficiency - GIDS.JAVA LIVE 2020
Jelastic Multi-Cloud PaaS
 
Kubernetes and Nested Containers: Enhanced 3 Ps (Performance, Price and Provi...
Jelastic Multi-Cloud PaaS
 
WordPress Cluster for Enterprise High-Availability and On-Demand Scaling
Jelastic Multi-Cloud PaaS
 
Elastic JVM for Scalable Java EE Applications Running in Containers #Jakart...
Jelastic Multi-Cloud PaaS
 
Choosing Right Garbage Collector to Increase Efficiency of Java Memory Usage
Jelastic Multi-Cloud PaaS
 
SaaSification in Action. Attracting Software Vendors with Easy Transformation
Jelastic Multi-Cloud PaaS
 
State of the Art UI - Overview of Jelastic PaaS Functionality
Jelastic Multi-Cloud PaaS
 
How to Make Money Solving 5 Major Problems of Cloud Hosting Customers
Jelastic Multi-Cloud PaaS
 
Multi-Cloud Lightweight Platform as a Service
Jelastic Multi-Cloud PaaS
 
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
Jelastic Multi-Cloud PaaS
 
Cloud Hosting Business in Africa: Market Specifics and Ways to Grow
Jelastic Multi-Cloud PaaS
 
Automated scaling of microservice stacks for JavaEE applications - JEEConf 2017
Jelastic Multi-Cloud PaaS
 
Jelastic DevOps Platform Product Overview for Service Providers
Jelastic Multi-Cloud PaaS
 
Auto Scaling for Multi-Tier Containers Topology
Jelastic Multi-Cloud PaaS
 
Jelastic DevOps Platform Product Overview for ISVs
Jelastic Multi-Cloud PaaS
 
DevOps Epoch 2016
Jelastic Multi-Cloud PaaS
 
Ad

Recently uploaded (20)

PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
July Patch Tuesday
Ivanti
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 

From VMs to Containers: Decompose and Migrate Old Legacy JavaEE Application