+ All Categories
Home > Technology > Create Dynamic console with OSGi and Adobe Flex

Create Dynamic console with OSGi and Adobe Flex

Date post: 28-Nov-2014
Category:
Upload: florent-benoit
View: 1,213 times
Download: 3 times
Share this document with a friend
Description:
How to create modules for a dynamic console by using Flex OSGi bundles on top of OSGi gateways
11
OW2Con 2011, November 23-24, Orange Labs, Paris. www.ow2.org. Kerneos v2 Build new modular web console with Adobe Flex, GraniteDS and OSGi Florent Benoit, BULL [@florentbenoit ]
Transcript
Page 1: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos v2

Build new modular web console with Adobe Flex, GraniteDS and OSGi

Florent Benoit, BULL [@florentbenoit ]

Page 2: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Why Kerneos ?● At Bull, leading some OW2 projects including:

● JOnAS● JASMINe● EasyBeans

● Each project is requiring an admin console● Each project with its own framework ?

→ bad idea !● → Design a common framework to handle

the administration console of these projects

Page 3: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Technologies

● Needs a Gui with Rich Components● Adobe Flex

– Many components for administration console– Keep Java on the server side– Allowing to load/unload modules

● GraniteDS– Transport layer used between Client/Server– More lightweight than BlazeDS

Page 4: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

History : Kerneos v1

● One .war file generated for each project● jonasAdmin.war, jasmine-eos.war, easybeans-console.war,...

● This file is built offline and integrates all the modules of each project.

● No versions of a module● No way to add new module dynamically

● Needs to restart/redeploy the application● Difficult to share modules across all the

consoles

STATIC!!!

Page 5: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos Architecture v1

Page 6: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos v2 : Wish List

● Load dynamically kerneos modules● Share kerneos modules between the console

● Some modules are not part/linked to the project console

● Dynamic content in a kerneos module depending of the user context (role)

→ Disable features for unauthenticated users

→ Modify content based on the user

Page 7: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos v2 implementation

● OSGi based● services : ConfigAdmin, EventAdmin

● Kerneos Module are OSGi bundles● → Allows to load/unload the module

dynamically● Using Apache Felix iPOJO for components

– GraniteDS library has been enhanced to be OSGi aware (and offering OSGi services)

Page 8: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos v2 architecture

Page 9: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos v2 features

● Kerneos Store● Browse available kerneos modules● Download / Install kerneos modules

● Different assemblies :● Bundles for OSGi platform

– OW2 JOnAS– Apache Felix

● WAR for Web container (using embedded OSGi)

Page 10: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Demo of Kerneos v2● Start OSGi gateway

● Drop kerneos module– New UI content when module is dropped

● Remove module– Content disappear

● Role based content● Disable button

● Store example (Download a remote module)

Page 11: Create Dynamic console with OSGi and Adobe Flex

OW2Con 2011, November 23-24, Orange Labs, Paris.

www.ow2.org.

Kerneos / OW2

● Kerneos has been submitted as a new OW2 project

● Discussion in OW2 technology council


Recommended