42

Build 2014 - Running Java and Oracle Applications on Microsoft Azure

Embed Size (px)

DESCRIPTION

Co-presented with Chris Risner (@ChrisRisner) at Build 2014. We talked about some of the options for running Java on Azure, including the Azure plugin for Eclipse and how it enables creation, development, testing, and deployment of applications to Cloud Services as well as some of the more advanced configuration options. We also reviewed how you can run official Oracle virtual machines including WebLogic and Oracle Database.

Citation preview

Page 1: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 2: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 3: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 4: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 5: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 6: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 7: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

IaaS

• Windows or Linux VMs

• Official Oracle JDK v6 &

v7

• Pre-configured VMs

• Oracle WebLogic, VM

Depot Java Image, or

your own JVM

PaaS

• 64 bit OpenJDK build by

Azul (Zulu)

• Or bring any VM

• Eclipse plugin for

deployment, monitoring

and management

Services

• Windows Azure SDK for

Java: Blob, table, queue,

service bus, SQL, etc

• Other Azure SDKs and

azure-cli / tools

Page 8: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

Oracle VMs in the Microsoft Azure Gallery

Oracle license mobility to Microsoft Azure

Oracle offers Oracle Linux on Microsoft Azure

Java tested and certified on Microsoft Azure

Became Generally Available in March

Page 9: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 10: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

VMGalleyImage Version(s) Standard Enterprise

WindowsServer2012

Database 12c X X

WebLogic 12c X X

DatabaseandWeblogicBundle 12c X X

JDK 6,7 X

WindowsServer2008

WebLogic 11g X X

OracleLinux6.4

Database 12.1.0.1 X X

WebLogic 12.1.0.1 X X

Page 11: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

“Microsoft is playing quite nicely with Linux

and other open source tools. “-Robert McMillan, Wired Enterprise

“Our biggest benefit is scalability, that's our main reason for a migration.

We were sincerely and positively surprised by cost of migration and

Azure server itself” Ivan Baruzin, Ademptio (2 Linux Servers VPS to 20 Linux VMs on Azure)

“Wired”

• Pre-built images optimized for

cloud

• Up-to-date VMs validated by

Linux vendors

• Microsoft support via forum

• Easy path for moving on-prem

VMs to cloud

• Manage via familiar tools / SSH

• Gallery of community-built

images

• Supported by 3rd party

vendors (e.g. BitNami)

• Integrated into Azure portal

and management tools

• Options to add vendor

provided support for a VM

Page 12: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 13: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 14: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 15: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

IaaS

• Windows or Linux VMs

• Official Oracle JDK v6 &

v7

• Pre-configured VMs

• Oracle WebLogic, VM

Depot Java Image, or

your own JVM

PaaS

• 64 bit OpenJDK build by

Azul (Zulu)

• Or bring any VM

• Eclipse plugin for

deployment, monitoring

and management

Services

• Windows Azure SDK for

Java: Blob, table, queue,

service bus, SQL, etc

• Other Azure SDKs and

azure-cli / tools

Page 16: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 17: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 18: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 19: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 20: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 21: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 22: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 24: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 25: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

IaaS

• Windows or Linux VMs

• Official Oracle JDK v6 &

v7

• Pre-configured VMs

• Oracle WebLogic, VM

Depot Java Image, or

your own JVM

PaaS

• 64 bit OpenJDK build by

Azul (Zulu)

• Or bring any VM

• Eclipse plugin for

deployment, monitoring

and management

Services

• Microsoft Azure SDK for

Java: Blob, table, queue,

service bus, SQL, etc

• Other Azure SDKs and

azure-cli / tools

Page 26: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 27: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 28: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 29: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 30: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 31: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 32: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 33: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 34: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

import com.microsoft.windowsazure.services.core.storage.*;

import com.microsoft.windowsazure.services.blob.client.*;

Page 35: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

// Define the connection-string with your values

public static final String storageConnectionString =

"DefaultEndpointsProtocol=http;" +

"AccountName=your_storage_account;" +

"AccountKey=your_storage_account_key";

CloudBlobContainer container =

blobClient.getContainerReference("mycontainer");

// Option - Create the container if it does not exist

container.createIfNotExist();

Page 36: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

for (ListBlobItem blobItem :

container.listBlobs()) {

System.out.println(blobItem.getUri()); }

Page 37: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

http://aka.ms/JavaHubs

Page 38: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

VM Depot - vmdepot.msopentech.com

SDKs – www.windowsazure.com/en-us/develop/overview/

Developer Centers – http://www.windowsazure.com/en-us/documentation/

Eclipse Plugin -github.com/MSOpenTech/WindowsAzureToolkitForEclipseWithJava

Tutorial- http://aka.ms/JavaTutorial

Page 39: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

Public News for Oracle software on Windows Azure at www.windowsazure.com/oracle

Oracle Self Service Kit http://aka.ms/orclssk

How to use Oracle images on Windows Azurehttp://go.microsoft.com/fwlink/?linkid=321002&clcid=0x409

Oracle Case Study – http://aka.ms/OracleCaseStudy

Page 40: Build 2014 - Running Java and Oracle Applications on Microsoft Azure

Brian Benz – @bbenz

[email protected]

Chris Risner - @chrisrisner

[email protected]

Page 41: Build 2014 - Running Java and Oracle Applications on Microsoft Azure
Page 42: Build 2014 - Running Java and Oracle Applications on Microsoft Azure