server day 2009: spring dm server by alef arendsen

21
Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. The need for OSGi and the SpringSource dm Server

Upload: jug-genova

Post on 11-May-2015

1.217 views

Category:

Technology


0 download

DESCRIPTION

Alef Arendsen presentation at the Application Server Day 2009, discussing the latest innovations in Spring dm Server 1.0

TRANSCRIPT

Page 1: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

The need for OSGi

and the SpringSource dm Server

Page 2: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 2

Who is this guy anyway?

•Alef Arendsen (Dutch)– Co-founder of SpringSource– Currently strategic advisor at JTeam– Key contributor to Spring Framework

•SpringSource– The company creating and sustaining many

open source technologies• Spring, Integration, Web Flow, Batch, et cetera• AspectJ, Groovy, Grails, ActiveMQ, ServiceMix• Apache Tomcat, Apache HTTPd

– Consulting, training and support subscriptions for these many open source technologies and other value-adds

Page 3: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

Complexity is your Enemy!

“Complexity leads to disaster. Your application should be built around simple constructs and understandable layers, which

combine to perform complex tasks. The code itself, however, should avoid complexity at every stage. This is much easier to say than to do, though, since many programmers are afraid of

missing important pieces, or of oversimplifying.” -- Justin Gehtland

Page 4: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

Toward Lean Software

“Lean software is an approach to building software that promotes simplicity and minimizes resource usage. Forrester

analyst John Rymer says he believes the application development industry must move to lean software as the

next development paradigm to move ahead. Lean software could be the antidotes to bloated vendors and could be

helpful in a down economy.”-- Daryl K. Taft – eWeek ( December 2008)

Page 5: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

Towards modular middleware

“...thus a container is no longer a fixed monolithic concept, but a runtime infrastructure that can be assembled from existing building blocks. There's no longer a set menu of

declarative middleware services; you can create your own selection à la carte...”

-- Rod Johnson – J2EE without EJB (2004)

Page 6: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

Page 7: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 7

Java API 1.0.2 (9 in total)

Page 8: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 8

Java API 1.1.3 (25 in total)

Page 9: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 9

Java API 1.2 (59 in total)

Page 10: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 10

Java API 1.3 (76 in total)

Page 11: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 11

Further evolution of Java

•Java 1.4 had 135 packages •Java 5 – 166 packages•Java 6 – 203 packages•Java 7 – 204 packages (in the current beta)

Page 12: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 12

Spring Framework

•Spring 1.0 – 95 packages•Spring 1.1 – 110 packages•Spring 1.2 – 137 packages •Spring 2.0 – 197 packages•Spring 2.5.6 – 231 packages•Spring 3.0 milestone 1 – 232 packages

Page 13: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 13

Spring Framework

•It looks like we continue to keep on dumping stuff in there!

Page 14: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 14

Before we move on...

•We do seem to get more stuff done•Spring 3.0 for example

– Introduces REST support– Incorporates XML marshalling support

• With JiBX, JAXB, XStream• With XMLBeans and Castor

– Introduces an expression language

•We write applications– That are more feature-rich– Are better to interface with– Et cetera

Page 15: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 15

The types problem

•All these types do form a problem though– Larger footprint of our applications

• Ever heard of 10 to 50 MB WAR or EAR files?

– Larger footprint of infrastructure software• If you've ever installed

<insert-favorite-vendor>'sapplication server, you knowwhat I mean

– With changing infrastructurelandscape this is going to forma real problem very soon(think cloud, et cetera)!

Page 16: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 16

The services problem

•Even if we fix the types problem– We still can't seem to share services in an elegant way!– To be able to share services

• You have to write web services• You have to write RMI interfaces

– Redeployment of services seems to be quite hard

Page 17: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

It's all about modularity and sharing

Page 18: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 18

Using OSGi to solve

•The types problem– Export-Package: I offer types in package XYZ– Import-Package: I need types from package XYZ

•The services problem– <osgi:service/>: I offer a instance of a service– <osgi:reference/> I need an instance of a service

Page 19: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

On to the IDE

Page 20: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited. 20

So what if I don't want OSGi

•Spring + Tomcat: a widely used combo•Tomcat however does not have everything you might need such as cluster management, diagnostics and other monitoring and management features

•SpringSource tc Server– The Tomcat you know– The enterprise capabilities you need– Nothing new to learn, just plain Tomcat + some extras– Commercial offering, easy way to get started

(€2500,= for 4 CPUs/sockets & a training seat)

Page 21: Server Day 2009: Spring dm Server by Alef Arendsen

Copyright 2007 SpringSource. Copying, publishing or distributi ng without express written permission is prohibited.

Questions?We offer training session in Milano & Roma.

Visit http://www.springsource.com/training for more info.There are also possibilities to do a training in-house.

Further information about dm Server, tc Server and SpringSource Tool Suite,

visit http://www.springsource.com