Welcome!

@CloudExpo Authors: Elizabeth White, Yeshim Deniz, Liz McMillan, Matt Brickey, Christoph Schell

Related Topics: @CloudExpo, Java IoT, Recurring Revenue

@CloudExpo: Blog Post

Case Study: From On-Premise to Cloud By @Oracle | @CloudExpo [#Cloud]

There are many technical considerations when moving applications from on premise to cloud

Case Study: Moving from On-Premise to Cloud

In this article, we take web applications developed for on-premise and move to the cloud. We first prepare the applications, then we prepare the cloud and finally we deploy our apps to the cloud.

Preparing the Apps
For this exercise, we will be using two applications:

  1. A sample application (sample.war) from Tomcat (available here)
  2. A sample application (examplesWebApp.war) from WebLogic (available as part of the WLS 10.3.6 install)

You can try deploying these apps to tomcat and WebLogic respectively, using a local installation (ie, on premise).

Of course, you can also develop your own servlets or J2EE applications using your favorite application server and J2EE development environment. As we'll see later, the applications for the most part are portable to different app servers and to the cloud; however, for any vendor specific extensions, there may be some customization required for cloud enablement.

Preparing the cloud
There are a number of cloud solutions that can be employed:

  • IaaS - Infrastructure as a service
  • PaaS - Platform as a service
  • Saas - Software as a service

We will look at the first two.

In IaaS, we leverage the cloud for hardware and OS. One such offering is Amazon Elastic Compute Cloud (EC2). A free trial is available, which gives you a linux compute node (1GB RAM). More expandable options are available at a cost. Once you obtain access to your hardware and OS on EC2, you can log into the machine and use it like any other linux machine.  Thus you can install and configure an appserver such as tomcat, and then deploy your apps and voila! You now have moved your application to the cloud!

In PaaS, we leverage the cloud for hardware, OS and also the application server itself which are all managed by the cloud vendor. One such offering is Oracle's Java Cloud Service (JCS) - SaaS Extension. It is Java a platform specially built to deploy extension for Oracle Software as a Service offering .  A free trial is available and this paper uses the free trial. We will use our two applications to represent our SaaS extensions.  A console (based on Oracle's Enterprise Manager) gives you the ability to deploy applications into the cloud.

Deploy Apps to the cloud
To deploy our Tomcat sample to  JCS, we use the Java Console screen (see below). Select ‘deploy new' and then select the war file from your local files. Once the sample is available, you will see the tomcat sample listed as running.

Click on ‘test application' on that row, and it will bring up a window with a URL. Click on the URL and you will bring up the sample tomcat application, running on Oracle cloud!

Now we will attempt to deploy the WebLogic sample. Again, we select ‘deploy new' and point to the examplesWebApp.war. This time, however, we get 2 errors. Looking at the log, they are both in the weblogic extension file, weblogic.xml.

The first error is that <page-check-seconds> is set to 1. pageCheckSeconds specifies the interval in seconds between stale checks for an individual JSP. In development mode, the default is 1 (second). In production, the value should be set to -1 (do not check). Modify this value to -1 and the error disappears.

The second error is that <virtual-directory-mapping> is not allowed. With the JCS SaaS extension offering, you don't have full control over the environment (Oracle has another cloud offering which gives full control) and therefore there is no virtual mapping allowed. In this case, the virtual mapping is pointing to a central location for images. Remove the virtual mapping section. Then copy the images directory to your webapp directory and this will resolve your error.

Note that after making these changes, you will need to repackage the war (using ‘jar cf'). Now deploy using the console and you have your second application running in the cloud.

Conclusion
There are many technical considerations when moving applications from on premise to cloud. This article offers a framework for such considerations. We discussed moving to Infrastructure as a Service (IaaS) and Platform as a Service (PaaS). Then we took applications from Tomcat and WebLogic, and deployed to a Platform as a Service. We noted that application server-specific extensions sometimes need to be adjusted in order to deploy to the cloud.

More Stories By Michael Meiner

Michael Meiner is an Engineering Director at Oracle Corporation. His organization is responsible for lifecycle Quality Assurance of the Fusion Middleware Suite of products, including: installation, configuration, upgrade, test-to-production and interoperability on a range of computing platforms and Operating Systems. The Fusion Middleware product suite supports both On-Premise as well as Cloud offerings.

@CloudExpo Stories
21st International Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud strategy. Me...
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
Kubernetes is an open source system for automating deployment, scaling, and management of containerized applications. Kubernetes was originally built by Google, leveraging years of experience with managing container workloads, and is now a Cloud Native Compute Foundation (CNCF) project. Kubernetes has been widely adopted by the community, supported on all major public and private cloud providers, and is gaining rapid adoption in enterprises. However, Kubernetes may seem intimidating and complex ...
"Outscale was founded in 2010, is based in France, is a strategic partner to Dassault Systémes and has done quite a bit of work with divisions of Dassault," explained Jackie Funk, Digital Marketing exec at Outscale, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We focus on SAP workloads because they are among the most powerful but somewhat challenging workloads out there to take into public cloud," explained Swen Conrad, CEO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"I think DevOps is now a rambunctious teenager – it’s starting to get a mind of its own, wanting to get its own things but it still needs some adult supervision," explained Thomas Hooker, VP of marketing at CollabNet, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are still a relatively small software house and we are focusing on certain industries like FinTech, med tech, energy and utilities. We help our customers with their digital transformation," noted Piotr Stawinski, Founder and CEO of EARP Integration, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We've been engaging with a lot of customers including Panasonic, we've been involved with Cisco and now we're working with the U.S. government - the Department of Homeland Security," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We're here to tell the world about our cloud-scale infrastructure that we have at Juniper combined with the world-class security that we put into the cloud," explained Lisa Guess, VP of Systems Engineering at Juniper Networks, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"With Digital Experience Monitoring what used to be a simple visit to a web page has exploded into app on phones, data from social media feeds, competitive benchmarking - these are all components that are only available because of some type of digital asset," explained Leo Vasiliou, Director of Web Performance Engineering at Catchpoint Systems, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Your homes and cars can be automated and self-serviced. Why can't your storage? From simply asking questions to analyze and troubleshoot your infrastructure, to provisioning storage with snapshots, recovery and replication, your wildest sci-fi dream has come true. In his session at @DevOpsSummit at 20th Cloud Expo, Dan Florea, Director of Product Management at Tintri, provided a ChatOps demo where you can talk to your storage and manage it from anywhere, through Slack and similar services with...
"Peak 10 is a hybrid infrastructure provider across the nation. We are in the thick of things when it comes to hybrid IT," explained Michael Fuhrman, Chief Technology Officer at Peak 10, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
As enterprise cloud becomes the norm, businesses and government programs must address compounded regulatory compliance related to data privacy and information protection. The most recent, Controlled Unclassified Information and the EU’s GDPR have board level implications and companies still struggle with demonstrating due diligence. Developers and DevOps leaders, as part of the pre-planning process and the associated supply chain, could benefit from updating their code libraries and design by in...
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud plat...
"We are an IT services solution provider and we sell software to support those solutions. Our focus and key areas are around security, enterprise monitoring, and continuous delivery optimization," noted John Balsavage, President of A&I Solutions, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We were founded in 2003 and the way we were founded was about good backup and good disaster recovery for our clients, and for the last 20 years we've been pretty consistent with that," noted Marc Malafronte, Territory Manager at StorageCraft, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
There is a huge demand for responsive, real-time mobile and web experiences, but current architectural patterns do not easily accommodate applications that respond to events in real time. Common solutions using message queues or HTTP long-polling quickly lead to resiliency, scalability and development velocity challenges. In his session at 21st Cloud Expo, Ryland Degnan, a Senior Software Engineer on the Netflix Edge Platform team, will discuss how by leveraging a reactive stream-based protocol,...
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"DivvyCloud as a company set out to help customers automate solutions to the most common cloud problems," noted Jeremy Snyder, VP of Business Development at DivvyCloud, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.