41
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | What’s New in WebLogic 12c David Sanz Gil Principal Sales Consultant June 12th, 2014

Novedades de WebLogic 12c_David Sanz

Embed Size (px)

Citation preview

Page 1: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

What’s New in WebLogic 12c

David Sanz GilPrincipal Sales ConsultantJune 12th, 2014

Page 2: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Safe Harbor StatementThe following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

2

Page 3: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 3

Agenda

1

2

3

WebLogic Server Landscape & Timeline

WebLogic Server 12c New & Updated Features

What’s Next? WebLogic Server 12.1.4

‒ Install, Patch, Upgrade‒ Java Standards Support‒ Updated WebSockets Protocol Support‒ Updated Maven Support‒ Dynamic Clusters & Server Templates

‒ Oracle DB 12c Integration‒ Coherence 12c Integration‒ Elastic JMS‒ Updated Persistence Framework‒ … and More

Page 4: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 4

Agenda

1

2

3

WebLogic Server Landscape & Timeline

WebLogic Server 12c New & Updated Features

What’s Next? WebLogic Server 12.1.4

‒ Install, Patch, Upgrade‒ Java Standards Support‒ Updated WebSockets Protocol Support‒ Updated Maven Support‒ Dynamic Clusters & Server Templates

‒ Oracle DB 12c Integration‒ Coherence 12c Integration‒ Elastic JMS‒ Updated Persistence Framework‒ … and More

Page 5: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Cloud Application FoundationSimple, Integrated, Best of Breed, Supported, Standard, Lower TCO

5

Application AwareVirtualization

Traffic Management

Java Server Transactions

XA

MessagingData Grid

Java EE

Page 6: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 6

2010 2011 2012 2013 2014 2015

WebLogic Server ReleasesWebLogic 11gR1 (10.3.1-6)

Oracle FMW 11g & Apps Manageability, Active GridLink Messaging, Coherence, OVAB Engineered Systems, Cloud

WebLogic 12c (12.1.2) FMW 12c Infrastructure Mission Critical Cloud Platform Native Cloud Management Modern Development Platform

WebLogic 12c (12.1.1) Java EE 6 Developer Productivity Oracle Traffic Director Disaster Recovery

WebLogic 12c (12.1.3) FMW 12c Infra, SOA, ODI Mobile and Rich Client Support Mission Critical Cloud Platform Native Cloud Management

WebLogic 12c (12.1.4) FMW 12c Platform Multitenancy Elastic Clusters and REST Mgmt Java EE 7 and Development Exalogic, HA and MAA

Page 7: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 7

Agenda

1

2

3

WebLogic Server Landscape & Timeline

WebLogic Server 12c New & Updated Features

What’s Next? WebLogic Server 12.1.4

‒ Install, Patch, Upgrade‒ Java Standards Support‒ Updated WebSockets Protocol Support‒ Updated Maven Support‒ Dynamic Clusters & Server Templates

‒ Oracle DB 12c Integration‒ Coherence 12c Integration‒ Elastic JMS‒ Updated Persistence Framework‒ … and More

Page 8: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 8

Install and Patch

• wls_121x00.jar, installs WebLogic Server and Coherence• fmw_infra_121x00.jar, adds JRF and Fusion Middleware Control• JDK is no longer distributed along with the installer• Patches are now applied with OPatch• Inventory location (matters!!)

OUI-based installers

[HKEY_LOCAL_MACHINE\SOFTWARE\Oracle]"inst_loc"="C:\\Program Files\\Oracle\\Inventory"

/etc/oraInst.loc

Page 9: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 9

Developer Productivity

• Lightweight distribution (180MB) for Windows, Linux, OSX• For development only• Up to 12.1.3 – Unzip and go– No patchable

• 12.1.4 and beyond–OUI-based– Leverages HK2 project– Patchable

Lightweight installer

Distribution size in GB0

0.20.40.60.8

11.21.41.6

fmw_infra_121200.jarwls_121200.jarZIP installer

Page 10: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 10

Java Standards SupportJava SE 7: Cleaner, More Maintainable Code

• Oracle WebLogic Server 12c supports Java SE 7 (and Java SE 6)– Java language enhancements• Strings in Switch, changes to literals• Multi Catch, precise rethrow• Try with resources• Diamond operator <>

– Client and server support– Internationalization– SSL/TLS 1.2 in JSSE 7

Page 11: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 11

Java Standards SupportDeveloper Productivity with Java EE 6

• Completes WebLogic Java EE 6 API support– Servlet 3.0, CDI, Managed beans– JSP 2.2, EJB 3.1, JAX-WS 2.2

• Certified Java EE 6 Makes Development Faster– Fewer Java Classes, Less Code, Less XML

• With Modern Programming Techniques– Dependency Injection, Annotations, POJO, REST

• Supported Standards– docs.oracle.com/middleware/1212/wls/NOTES/index.html#CJAICDAJ

25% Less Java Classes

50% Less Lines of Code

80% Less Lines of XML

Page 12: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 12

Java Standards SupportJEE 7 supported APIs

• Java EE 7 will be fully supported in WebLogic 12.1.4 release• As of 12.1.3 release the following JEE APIs are supported:

Java API for WebSocket (JSR 356)Java API for JSON Processing (JSR 353)Java API for RESTful Web Services 2.0 (JSR 339)Java Persistence API 2.1 (JSR 338)

Page 13: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 13

Updated WebSocket Protocol SupportJava EE 7 WebSocket API

• WebLogic 12c fully supports WebSocket Protocol (RFC 6455)• As of release 12.1.3 WebLogic supports JSR 356 which enables application

developers to use the standard Java EE 7 WebSocket API• The proprietary WebLogic Server WebSocket API that was introduced in

release 12.1.2 is deprecated but remains supported for backward compatibility

Page 14: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 14

WebSocket Protocol PerformanceScalability, Performance

• Message Echo Benchmark–WebSocket Clients connect, send messages

every second– Server broadcasts back to clients

• Single WLS Server– Reliably support 60,000 connections – Throughput measured at

~20,000 messages/second with a 512 byte payload

WebLogic WebSockets

60k Connections

20k msgs/sec

Page 15: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 15

Updated Maven Support

• Oracle Maven Sync Plugin• WebLogic Maven Plugin– New goals– New archetypes

Page 16: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 16

Oracle Maven Sync PluginPush artifacts from an Oracle Home

• Populates a local or shared repository with WebLogic jars & archetypes• Patch & resync to maintain repository up-to-date• Sample goals– Push to local repository

– Perform a ‘dry-run’ to see what will get pushed

$ mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=$ORACLE_HOME

$ mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=$ORACLE_HOME-Doracle-maven-sync.testOnly=true

Page 17: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 17

Oracle Maven Sync PluginInstall

• oracle-maven-sync plugin coordinates– GroupId: com.oracle.maven– ArtifactId: oracle-maven-sync

• Install directly using Maven install goal$ cd $ORACLE_HOME/oracle_common/plugins/maven/com/oracle/maven/oracle-maven-sync/12.1.2

$ mvn install:install-file -Dfile=oracle-maven-sync.12.1.2.jar -DpomFile=oracle-maven-sync.12.1.2.pom

Page 18: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 18

Weblogic Maven PluginNew Goals

• Coordinates for weblogic-maven-plugin– GroupId: com.oracle.weblogic– ArtifactId: weblogic-maven-plugin

• Supports operational tasks from a Maven project– Install WebLogic Server– Create Domains– Start Servers– Execute WLST scripts

• Goals can run remotely (without a local WLS installation)

– Deploy applications, libraries– Start, stop applications– Pre-compile applications–WS generation, packaging

Page 19: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 19

Weblogic Maven PluginArchetypes

• WebLogic Server 12c (12.1.2) provides five archetypes

• Installed into the repository when the oracle-maven-sync plugin is executed• Execute maven archetype:crawl goal to discover and use archetypes

basic-web JSF, CDI with weblogic-maven-plugin

basic-webapp-ejb JSF, CDI, JPA with weblogic-maven-plugin

basic-mdb JSF, CDI, MDB with weblogic-maven-plugin + WLST

basic-webservice Web Service with weblogic-maven-plugin JWSC goals

maven-gar-archetype Skeleton project and configuration files for a GAR

Page 20: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 20

Dynamic Clusters & Server TemplatesScale Clusters by Changing one Parameter

• Create cluster based on server template• Rules for calculating server-specific attributes– Server name, listen ports, machines

• # of servers can be dynamically changed• Building block for elasticity• Whole server migration supported• Auto-scaling coming soon [12.1.4]– Elastic Clusters

Server 1

Dynamic Cluster

Server 2

Server Template

Server 3 Server 4

Server 5 Server 6

Server 7 Server 8

Scale to “N” Managed Servers

Page 21: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 21

• Runtime Connectoin Load Balancing & Failover of requests to RAC nodes• RAC node web session & transaction affinity for better performance• Continuous connection availability regardless of RAC changes–WebLogic listens to RAC Fast Application Notification [FAN] events

Oracle Database IntegrationReminder :: Active GridLink for RAC

RAC Node Load Aware Connection Requests

RAC Node AffinityFor Transactions

Continuous ConnectionsRegardless of RAC Changes

GridLinkWebLogic

GridLinkWebLogic

80% 20%

XA

GridLinkWebLogic

GridLinkWebLogic

GridLinkWebLogic

GridLinkWebLogic

Page 22: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 22

Oracle Database 12c IntegrationApplication Continuity

• On a loss of database service AC rebuilds the database session and executes the history accumulated during the request

• Works with both Active GridLink for RAC and Generic Datasources

• Supports both read and write operations; No XA support yet

• Requires Oracle 12c JDBC Driver and Oracle 12c Database

• Configuration and Usage– oracle.jdbc.replay.OracleDataSourceImpl– Replay Initiation Timeout– Disabling AC for a connection if (con instanceof oracle.jdbc.replay.ReplayableConnection)

((oracle.jdbc.replay.ReplayableConnection) connection).disableReplay();

Page 23: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 23

Oracle Database 12c IntegrationDatabase Resident Connection Pooling

• Prior to DRCP, one process creates/holds database sessions that are exclusively used by that process (dedicated severs)– sessions are shared between the different threads of one WLS server– it can potentially lead to a huge number of database sessions

• Using DRCP sessions are kept on the (database) server side (pooled servers)– sessions are shared between different WLS servers– suitable for applications with many short-lived database interactions

• Works with both Active GridLink for RAC and Generic Datasources• Requires Oracle 12c JDBC Driver and Oracle 12c Database

Page 24: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 24

Oracle Database 12c IntegrationDatabase Resident Connection Pooling

• Configuration– Change the URL to include a suffix of :POOLED or

(SERVER=POOLED) for service URLs.– Specify the value/name pair of the DRCP

connection group/pool as a connection property

– DRCP must be enabled on the database side

oracle.jdbc.DRCPConnectionClass=myDRCPpool

WLS 1

Database Server

WLS 2

Handoff

Pooled ServerPooled

Server

Connection Broker

Persistent connections to

Connection Broker

After Handoff Direct Connection

Page 25: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 25

Oracle Database 12c IntegrationSupport for PDBs/CDBs, GDS, Automatic ONS

• Container Database (CDB) is a feature that optimizes resources by consolidating multiple Pluggable Databases (PDB) or tenants in a single CDB– Both CDBs and PDBs are supported in WebLogic 12c– Access to PDBs is transparent to the datasource; PDBs are presented as non-CDB

databases

• Global Database Services (GDS) provides automated load balancing, fault tolerance and resource utilization in a distributed database environment• When defining an Active GridLink datasource the ONS list is automatically

provided from the database to the driver

Page 26: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 26

Managed Coherence ServersCoherence Clusters & Cluster Members as First-class Citizens

• Coherence Clusters are configured as part of the WebLogic Domain • Managed Coherence Severs are WebLogic Managed Servers that configured

as Coherence Cluster members WebLogic Domain

Coherence Cluster

Node Manager

Machine

Admin Server

WebLogic Cluster A WebLogic Cluster B

Node Manager

Machine

Java EE / Coh Server

Node Manager

Machine

Java EE / Coh Server

Node Manager

Machine

Java EE / Coh Server

Node Manager

Machine

Java EE / Coh Server

Page 27: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 27

Managed Coherence ServersWebLogic Management Framework

• Introduces the Coherence Application / Grid ARchive (GAR) – Follows the Java EE model– Consolidates libraries & configuration into a single distributable entity– GAR can also be packaged in WebLogic EAR

• Leverages WebLogic Management Framework– Configuration Wizard, Admin Console, WLST, JMX, FMWC, Deployment tools– Node Manager for lifecycle management of cluster members– Coherence libraries on the system classpath (no need to package in your application)

• Coherence remains available “standalone” including support for GARs

Page 28: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

WebLogic

WebLogic JMSReminder :: JMS Extensions

• Unit of Order– Messages with same Unit of Order (UOO) are processed in order– Stronger ordering semantics than the JMS specification

• Unit of Work– Messages are grouped with a group identifier– Messages at final destination become available only when entire

group arrives

• Store and Forward Messaging– Store messages locally and forward to remote server when

available– Clients to server and server to server

• Distributed Destinations– Queues/Topics in a cluster appear as a single logical destination– High availability, scalability, parallel processing and load balancing

28

1 2 3 4 5 6 7 8 9

MDB 1 MDB 2 MDB 3

Messages red and grey have separate UOO

Message 3/4 not processed until 1/2 processed

Producer 2

1

3 MDB 2

MDB 1MDB 323 1

WebLogic Cluster

JMS Server JMS Server

JMS Server JMS Server

Client

LogicalDestination

WebLogic Forward when Target Available

JMS Server JMS Server

Page 29: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 29

Elastic JMS FeaturesSimplifying JMS Configuration

• Before 12c JMS Servers and stores are targeted to individual WLS Servers• Scaling out/up requires to configure the JMS Server, the store and target it

to the new WLS ServerJMS Server 1

JMS Store 1

WebLogic Server 1

JMS Server 1

JMS Store 1

JMS Server 2

JMS Store 2

WebLogic Server 2

JMS Server 2

JMS Store 2

JMS Server 3

JMS Store 3

WebLogic Server 3

JMS Server 3

JMS Store 3

WebLogic Cluster

Page 30: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 30

Elastic JMS FeaturesSimplifying JMS Configuration

• In 12c JMS Servers and stores are targeted to WLS Clusters• Scaling out/up JMS requires to add one WLS Server the cluster• All WLS Cluster types supported:– Configured– Dynamic [Elastic Clusters]–Mixed

WebLogic Server 1

JMS Server 1

JMS Store 1

WebLogic Server 2

JMS Server 2

JMS Store 2

WebLogic Server 3

JMS Server 3

JMS Store 3

WebLogic Cluster

JMS Server

JMS Store

Page 31: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 31

Mapping and Persistence FrameworkOracle TopLink 12c new Features

• NoSQL database support– Objects can be mapped to non-relational (NoSQL) data sources– Oracle NoSQL, MongoDB and others

• Client/Tenant isolation, where multiple application tenants may share database tables and schemas– Single-Table with discriminator columns– Table-per-Tenant– Virtual Private Database (VPD) compatible JDBC driver

• Support for Oracle Database Continuous Query Notification (CQN)– The DB notifies TopLink of changes so that objects in the shared cache can be invalidated – Live Queries (Query Result Change Notification, QRCN)

Page 32: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 32

WebLogic 12cThat’s NOT all Folks!

• OSGi Bundes for WebLogic Server Applications– Deploy OSGi Bundles and use them in your JEE applications

• WebLogic JMS Resource Adapter for Foreign Application Server Integration– JCA compliant resource adapter to provide high performance integration of a

WebLogic JMS client with foreign application servers

• Optimizations for Exalogic Elastic Cloud Software– JMS Message compression

• REST Management API– Performance, scalability, usability

Page 33: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 33

Agenda

1

2

3

WebLogic Server Landscape & Timeline

WebLogic Server 12c New & Updated Features

What’s Next? WebLogic Server 12.1.4

‒ Install, Patch, Upgrade‒ Java Standards Support‒ Updated WebSockets Protocol Support‒ Updated Maven Support‒ Dynamic Clusters & Server Templates

‒ Oracle DB 12c Integration‒ Coherence 12c Integration‒ Elastic JMS‒ Updated Persistence Framework‒ … and More

Page 34: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 34

What’s Next? Sneak Peek at WebLogic Server 12.1.4Multitenancy Concepts

• Introduce domain partition into WebLogic domains

• Apps and resources deployed for each partition (tenant)

• No application changes required

• Appropriate levels of end to end partition isolation:– Virtual host per partition for application access – Dedicated JNDI tree for resource isolation– Work Manager per partition for thread management– Security realm per partition – Data is segregated with PDBs

• WebLogic infrastructure is shared among partitions

Managed Server/Cluster

Container Database

PDB1 PDB2

Virtual Host

App

App

JMS

Datasource

JNDI

Virtual Host

App

App

JMS

Datasource

JNDI

Partition 1 Partition 2

Web Tier

Page 35: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 35

What’s Next? Sneak Peek at WebLogic Server 12.1.4Multitenancy

• Introduce domain partition into WebLogic domains

• Apps and resources deployed for each partition (tenant)

• No application changes required

• Appropriate levels of end to end partition isolation:– Virtual host per partition for application access – Dedicated JNDI tree for resource isolation– Work Manager per partition for thread management– Security realm per partition – Data is segregated with PDBs

• WebLogic infrastructure is shared among partitions

Managed Server/Cluster

Container Database

PDB1 PDB2

Virtual Host

App

App

JMS

Datasource

JNDI

Virtual Host

App

App

JMS

Datasource

JNDI

Partition 1 Partition 2

Web Tier

Page 36: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 36

What’s Next? Sneak Peek at WebLogic Server 12.1.4Multitenancy Use Cases

• Software as a Service– Classic SaaS – one app copy per tenant, with dedicated resources per tenant– Departmental Applications – One app copy per department/LOB– Regional or Geographic Application Instances – App copy per region with

customizations (properties files, text files, GIFs) per copy (e.g., ecommerce/customer experience applications)

• Consolidation– Increase Density–Multiple Applications for Multiple Tenants – Multiple application groups available to

tenants in various combinations; each tenant gets copy of desired apps/resources

Page 37: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 37

What’s Next? Sneak Peek at WebLogic Server 12.1.4Elastic Clusters

• Administration APIs for Dynamic Clusters– Start/stop a specified number of servers – Expand/shrink the size of the cluster–Manage server lifecycle, quiescence

• Configurable rules for cluster scaling– Thresholds based on user-defined metrics– Drive scaling changes– (Potential) Drive other configuration changes

Server 1

Server 2

Server N

Server N+1

WebLogic Dynamic Cluster

Admin APIS

MonitorRules

Page 38: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 38

What’s Next? Sneak Peek at WebLogic Server 12.1.4Avatar Support

HTTP[REST]

Web SocketsSSE

ChangeNotification

*.html

*.js

*.css

WebLogic Server

JDK8 / Nashorn

Server Runtime

Avatar Compiler

Avatar Runtime

Avatar.js

Node Modules

Avatar Modules

Application Services

ApplicationViews

Data Access

Databases

Page 40: Novedades de WebLogic 12c_David Sanz

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 40

Join the WebLogic CommunityResources

Twittertwitter.com/oracleweblogic

Facebookfacebook.com/oracleweblogic

Oracle’s WebLogic blogblogs.oracle.com/weblogicserver

Youtubeyoutube.com/OracleWebLogicyoutube.com/OracleCoherenceyoutube.com/OracleEnterpriseMgryoutube.com/OracleLearning

Page 41: Novedades de WebLogic 12c_David Sanz