Was liberty

25
© IBM Corporation 2011 IBM WebSphere Technical Conference 2011 October 10-14, 2011 Berlin, Germany WebSphere Application Server v8.5 Alpha – WAS Liberty Profile © IBM Corporation 2011 Ian Robinson - IBM Distinguished Engineer, WebSphere Foundation Chief Architect Tim deBoer - STSM, RAD Lead Architect

description

WebSphere Application Server V8.5 Alpha - The Lightweight WebSphere Liberty Profile

Transcript of Was liberty

Page 1: Was liberty

© IBM Corporation 2011

IBM WebSphereTechnical Conference 2011October 10-14, 2011 Berlin, Germany

WebSphere Application Server v8.5 Alpha – WAS Liberty Profile

© IBM Corporation 2011

Ian Robinson - IBM Distinguished Engineer, WebSphere Foundation Chief ArchitectTim deBoer - STSM, RAD Lead Architect

Page 2: Was liberty

2 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Agenda

• The Characteristics of a Development Environment

• Key Developer Concerns• What Next for WebSphere Dev/Test Tools

and Runtime• Demo

Page 3: Was liberty

3 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

The Characteristics of a Development Environment• A rich set of developer productivity tools that

– Make it easy to get started with new technologies

– Assist rapid development for expert users– Provide a responsive environment to test

against– Provide a test environment that has fidelity

with the target production environment

Page 4: Was liberty

4 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

What constitutes “Fidelity”?

• The application programming model available in the Dev Env faithfully reflects that of the production system– Application code and configuration– Application bindings (types, if not values)

• Code that cannot run properly in a production environment shouldbe flagged as such in the test environment

• Ability to test with the same semantic behavior as production system when container-managed QoS is configured.– Easy to test basic function to get it up and running– Easy to engage QoS within Dev Env with same behavior as

production runtime

Page 5: Was liberty

5 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

How is Fidelity Achieved?

Advanced Web, JEE,and OSGi tools

XML, SCA, Batch,Persistence tools

Code coverage, profiling, PD

Team collaboration

RAD

WTP

Eclipse

Authoring and Collaboration

Debug and Run

Basic Web & JEE toolsBasic content assist, validation, …

Java project support,Content assist, Validation, …

WA

S V6

.1, V

7, V

8se

rver

type

s

• By testing on a server type that most closely resembles the production WAS server runtime.

Page 6: Was liberty

6 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

The Development Profile

• By default, WAS servers defined to RAD are configured with a Development profile as the best compromise between fidelity and a responsive test environment

Development Profile

• Optimized for devt activitiessuch as publishing apps• Smaller thread pools• Less resources• Disable activity log• -Xquickstart JVM optionto defer JITing

• Faster server startup• No default apps installed

Page 7: Was liberty

7 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Frequency of Development Tasks

• Common development tasks include:

• All tasks should be as painless as possible, with special emphasis on the more frequent ones. If the time taken to accomplish these tasks is an impediment to the development, the cost of the fidelity of the test server runtime is challenged.

Hourly

Daily

Weekly

Monthly

Frequency

• Modify file within an application• Debug a problem in an application• Restart/redeploy application• Restart server• Share code with team• Change app structure (add/remove a module/bundle)• Make config change• Share config change with team• Reproduce problem from another environment• Upgrade to new service release• Create application• Install server

fastest

faster

fast

Time to complete

Page 8: Was liberty

8 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Developer Feedback

• Developers are looking for more (or less) from the test server runtime in the tools.– Greater test simplicity

• Config model (hard to edit, backup, share)• Admin console is for operational mgmt rather than development• Problem determination (including within customer apps)

– Responsiveness• Incremental publishing, app install, server startup time

– Footprint• WAS server types defined to RAD have a WAS production server

footprint and memory use.– For all types of application

• Tools available only as part of RAD distributions

Page 9: Was liberty

9 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

What Next for WebSphere Dev/Test Tools and Runtime?

WAS V8.5 Alpha introduces:• A new dynamic profile of WAS which is focused FIRST on

the development experience– Small footprint test server runtime– Simplified, shareable config– Fastest possible server start-up

• Fidelity with full-profile WAS– Same containers, QoS as full-profile WAS – But radically refactored to focus on the development experience– Extreme dynamicity to start what the app requires and no more

• Initially focused on dev/test of web, mobile and OSGi apps.

Visit and participate in the new WAS Developer Community

wasdev.net

Page 10: Was liberty

10 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

WAS V8.5 Alpha: Introducing WAS “Liberty” Profile• Not a single static profile: rather a dynamic, flexible profile of the

runtime to load only what the application needs– Memory footprint (web feature): < 50 MB– Profile is dynamic – switch parts of the server on and off without

restart.• Extremely lightweight

– Incredibly fast (re)start times: <5 seconds• Simplified configuration for quick time to productivity; one single

config file or modular config (as desired).– Easy to share / diff / manage in version control– Easy to componentize configuration across larger development

teams• Tools available as Eclipse features as well as in RAD…

Page 11: Was liberty

11 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

RADInstall: IM

WDTInstall: Eclipse update site or IM

Eclipse (WTP, DTP)

WebSphere Developer Tools (WDT) & RAD

Programming Model Support

• SCA• Java (WAS) Batch• SIP/CEA• XML (feature pack)

WebSphere Integration• Support for WAS v6.0, v6.1• Test Environments for WAS

v6.1, 7.0, v8.0• Portal Tools & Portal Server

support• Profile applications on WAS• Cloud: Deploy to IWD, or

WebSphere/Portal instances on SCE

Team Productivity• RTC integration• Collaborative

debug• Collaborative code

analysis

Enterprise Connectivity• J2C (EIS) tools• CICS, and IMS Adapters• Adapters for SAP, Siebel, JDE,

Oracle, PeopleSoft

Problem Determination• Code visualization - class,

sequence and topic diagrams• Static analysis (code review)• Code coverage: optimize unit

testing• Profiling

WAS Extensions Support• Binding and extension editors• Support for non-spec extensions

WebSphere Integration• Support for WAS v7.0, v8.0• Publish, start/stop the server• Debug Jython/wsadmin scripts

WDT adds support for Mac for dev/test with WAS Liberty Profile

Programming Model Support• Basic creation, editing, and

validation support for JEE applications:

• Web, XML, JPA, EJB, EAR• Database tools

Liberty Profile Integration• Publish, start/stop the server• Edit & manage server configuration

Extended Programming Model Support

• Advanced support for J2EE 1.4 and earlier:

• EJB & Web Services deploy

• DD editors• JAX-RPC

• Web:• Page & site designer• Web diagram Editor• Struts, JSF support• iWidget support

Future Content

Page 12: Was liberty

12 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

What This Means For Developers

• Availability of WebSphere Development Tools as Eclipse feature– As an alternative to integration in full RAD– Simple Eclipse feature update for WTP 3.6 (Helios) and 3.7 (Indigo) – Free! No Expiry

• Lightweight WAS Liberty profile runtime for dev/test through new WAS V8.5 Alpha server type in Eclipse– Focused on the development experience– Small footprint test server runtime– Simplified, shareable config– Fastest possible server start-up– Fidelity with full-profile WAS– Free! No Expiry– Initially focused on web apps (including JPA, transactions, security…)

• Accelerate development time to value– Develop/test with WDT and WAS v8.5 Alpha Liberty server type– Deploy applications unchanged to full profile WAS for production

Page 13: Was liberty

13 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Create a Lightweight WAS Server in WDT

Create a lightweight WAS server configuration in seconds.

Page 14: Was liberty

14 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Simplified Sever Configuration

• Simplest case: 1 XML file for all server config

• Editable within the workspace

• Exportable, shareable, versionable

No need for Admin Console, wsadmin, or extended EARs

ws-security.xml

server.xml etc.

resources.xml

Page 15: Was liberty

15 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Simplified Configuration<server>

<featureManager>

<feature>jsp-2.2</feature>

<feature>derby-10.5</feature>

</featureManager>

<logging trace.specification=”webcontainer=all=enabled:*=info=enabled” />

<application type="war" id="tradelite" name="tradelite"

location="tradelite.war" />

<datasource id=“ds" jndiName="jdbc/TradeDataSource"

databaseName="${shared.resource.dir}/data/tradedb"/>

</server>

features control which capabilities (bundles) are installed in the server

'singleton' configurations specify properties for a runtime service like logging

'instance' configurations specify multiple resources like applications and datasource definitions

Any of this configuration could be put into a separate xml file and 'included' in this 'master' configuration file

Page 16: Was liberty

16 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Flexible Configuration

• Shareable config snippets

<server>...<include url="http://hurgsa.ibm.com/~irobins/

was4d/config/blog.sample.xml" /><include file="${shared.config.dir}/datasource.xml" />

<server>server.xml

• Config can be componentized at any level of granularity, from 1 file to many.– Can use WDT to associate config snippets with a server config.

• Visualization through WDT tools as a single logical view.• Team development: keep the application and configuration

components together.

Page 17: Was liberty

17 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Highly composable Liberty profile based on ‘features’

JDK 6.0+

WASFeatures

Liberty KernelOSGi framework (runtime)

WAS Container

Applications

servlet-3.0

webAppSecurity-1.0jmx-1.0

jsp-2.2jsf-2.0

Under the Bonnet/Hood/Kühlerhaube

Page 18: Was liberty

18 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Dynamic Feature Management

<featureManager><feature>useful-3.2</feature>

</featureManager>

OSGi Configuration Admin

Feature Manager

Feature bundle

server.xml

reads config

injects config

useful-api-3.2.jaruseful-core-3_.*useful-extras-3.2_.*

/lib/features/useful-3.2.blst reads bundle list

Feature bundleFeature bundle

installs and starts bundles in OSGi

framework

Page 19: Was liberty

19 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Dynamic System Configuration

<include file=“extra.xml” />

OSGi Configuration Admin

Kernel bundle

server.xml

injects merged

config into bundles

merges user config over

defaults

Config defaultsConfig metadata

Feature bundlereads default config from

bundles

Config defaultsConfig metadata

<include file=“more.xml” /><include file=“evenmore.xml” />

extra.xml

more.xml

evenmore.xml

optional includes

Page 20: Was liberty

20 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Dynamic Service Control

OSGi Configuration Admin

Kernel bundle

Feature bundle

OSGi Dynamic Services

service 0

service 3service 2

service 1activate

inject config

inject dependencies

config

Page 21: Was liberty

21 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

• Free & frictionless download of developer tools• Extends Eclipse JEE Helios (3.6) and Indigo (3.7)• No time limit. Available from:

Get the WebSphere Dev Tools Easily

wasdev.net

– New WASdev community site: http://wasdev.net

– Within Eclipse (Help MarketPlace)– Eclipse Marketplace web site

http://marketplace.eclipse.org/– Eclipse update repository

Page 22: Was liberty

22 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

• Free & frictionless download of the WAS runtime for development & test

• No time limit.• Full profile “WAS for Developers” has been available since WAS V7.• New lightweight “WAS Liberty profile” is now available through the

WAS V8.5 Open Alpha program. • A zip download for web application development:

25 MB. Available from:– New WASdev community site:

http://wasdev.net– Within the WebSphere Development Eclipse

• Develop, debug and test web applications usinglightweight tools and runtime – deploy with complete fidelity to full-profile WAS server.

Get the WAS Runtime Easily

wasdev.net

Page 23: Was liberty

23 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

WebSphere Application Server FamilyWebSphere Application Server for

Developers

WebSphere Application Server

Network Deployment

WebSphere Application Server

for z/OS

WebSphere Application Server Hypervisor Edition

WebSphere Application

Server

WebSphere Application Server Community Edition

WebSphere Application

Server - Express

Enables efficientdevelopment of innovative applications that will eventually run on WAS in production

Also available as a no-charge edition for the developer desktop

Optimized to instantly run in VMware and other server virtualization environments

Delivers near-continuous availability, with advanced performance and management capabilities, for mission-critical applications

Takes full advantage of the z/OS Sysplex to deliver a highly secure, reliable, and resource efficient server experience

Provides secure, high performance transaction engine for moderately sized configurations with web tier clustering and failover across up to five application server profiles

A lower-cost, ready-to-go solution to build dynamic Web sites and applications

An open source-based, small footprint foundation with no up-front acquisition costs

Built on a common code base

+ Lightweightprofile

+ Lightweightprofile

+ Lightweightprofile

+ Lightweightprofile

+ Lightweightprofile

+ Lightweightprofile

Page 24: Was liberty

24 © IBM Corporation 2011

IBM WebSphere Technical Conference 2011 – Berlin, Germany

Summary• WAS V8.5 Alpha includes a lightweight, composable “Liberty”

profile of WAS.– With high fidelity to WAS V8 production

environment– Focusing on the needs of the developer

• Reduce overhead of common development tasks• Suitable for modest development hardware

• WebSphere Developer Tools for Eclipse deliver tools for the most popular WAS programming models as Eclipse features.

• Free with no time limit for development use– Accelerates development time to productivity.

wasdev.net

Page 25: Was liberty

25

IBM WebSphere Technical Conference 2011 – Berlin, Germany

© IBM Corporation 2011

Copyright Information

© Copyright IBM Corporation 2011. All Rights Reserved. IBM, the IBM logo, ibm.com, AppScan, CICS, Cloudburst, Cognos, CPLEX, DataPower, DB2, FileNet, ILOG, IMS, InfoSphere, Lotus, Lotus Notes, Maximo, Quickr, Rational, Rational Team Concert, Sametime, Tivoli, WebSphere, and z/OS are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol (® or ™), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at “Copyright and trademark information” at ibm.com/legal/copytrade.shtml.

Coremetrics is a trademark or registered trademark of Coremetrics, Inc., an IBM Company. SPSS is a trademark or registered trademark of SPSS, Inc. (or its affiliates), an IBM Company. Unica is a trademark or registered trademark of Unica Corporation, an IBM Company.Java and all Java-based trademarks and logos are trademarks of Oracle and/or its affiliates. Other

company, product and service names may be trademarks or service marks of others. References in this publication to IBM products and services do not imply that IBM intends to make them available in all countries in which IBM operates.