Thursday, April 30, 2009

JAX09 - HowTo build an OSGI EJB3 Server - Slides online

Last week I was at JAX conference in Mainz - as always some great days. Most important for me are discussions with friends and networking.

On Friday at OSGI Experts Day I had a session and could give an overview of my OSGI EJB3 server:




Uploaded the slides, so you can watch them here:

  • SlideShare (without embedded Screencasts)
  • Vimeo (as HD Video inclusive Quicktime Screencasts)

Next days I'll produce some episodes for my VideoPodcasts at ekkes-corner-tv.org and publish the session with audio added and some more details.

ekke
blog in german

Wednesday, April 8, 2009

redView - Dynamic Views for Business Applications

This year at EclipseCon in Santa Clara I presented first time the new Open Source project "redView" - started from Florian Pirchner and me.


The session was presented without the usual "slides-to-read-while-speaker-speaks". I was inspired by the book "Zen and the Art of Presentation" to make another kind of presentation.

But if you present a session in Zen - style, you couldn't only publish your slides to people not hearing you live. A Zen - style - session is only the half of work - you also have to publish detailed technical informations in an extra document.

In this case - those details will be published soon at redview.org to download.

If you were not at EclipseCon or visited another slot and want to know what I have presented, you're not lost - you can watch a Video Podcast:

ekkes - corner - tv just started

As an addition to my blogs in english and german language now I also will publish regular an english Video Podcast at ekkes - corner - tv.org:


I'll talk about and make live-demos about:

  • Eclipse as IDE and Platform for RCP and Server
  • OSGI - Equinox
  • Eclipse PDE (OSGI Bundle Tooling)
  • Eclipse Riena (Remoting, UI)
  • EasyBeans (EJB3 OSGI Bundles)
  • Drools (Rules Engine, Business Process Flows)
  • redView (Riena EMF Dynamic Views)
  • open-erp-ware (OSGI - ERP - Enterprise Application)
  • Model-Driven Development (oAW - OpenArchitectureWare XPand, XTend, Xtext, Workflow)
  • and more...

If you want to subscribe my Video Podcast:

open iTunes Store, search for „ekkes-corner“ and subscribe. There are two different formats available: for iPod/iPhone and for Desktop/AppleTV).

If you don't use iTunes Store you can read it directly from my web site: ekkes-corner-tv.org or subscribe RSS Feed from there.

The first episode presents the redView Session from EclipseCon.

EclipseCon was as usual: very short nights - but also much fun to meet all the friends again and to learn much.

Next months will be very hard:

  • redView should be published beginning of may 2009
  • my OSGI - Equinox - Server should run under Galileo
  • my ERP Enterprise App should go live in summer 2009

Not to forget: this month is JAX 2009 in Mainz (Germany) where I speak at OSGI Experts Day

There will be some Blogs and Video Podcasts to reflect all this work... stay tuned...

ekke

Thursday, March 19, 2009

Using RCP Views to view UML Diagrams ?

Who doesn't know this:

You as Software Architect have listen to your business users requirements and designed such great UML diagrams - and now you present them proudly - but your business users don't understand what you designed. They couldn't imagine what all those dependencies, relations, inheritance, 0..1, 0..* mean.


What if you could generate by-magic RCP views directly from your UML model ?

...and your business users can understand what your diagrams mean and also see those little hidden secrets from properties like "length of a String" causing the RCP View to show a single line or multi-line text field ?

...or showing fields marked as index as required with yellow background ?

...or showing your Enumerations as SingleChoices or Combos ?

Utopia ?

No - this is the way to realize it:

use openArchitectureWare to generate from your UML Model Java Code, Configuration Files, EMF Models and more



use redView to auto-magically generate dynamic Views from your EMF Models

(Hint: the first 3 TabItems represent 0..1 or 1..1 associations, the last two TabItems contain a Table and represent 0..* or 1..* associations)

Curious ?

Then visit on Thursday at 2:30pm Room 206 Session



redView is a part of a complex enterprise solution - if you want to know more about my OSGI - Equinox - Riena - Easybeans Serverproject please visit JAX09 in Germany and book the OSGI ExpertsDay.

ekke
blog in german

Thursday, January 29, 2009

Books and Conferences for Eclipse Plug-in Developers

Here are my Top 3 of new published books I'm using in my daily work of developing Eclipse Plug-ins in a model-driven way...


  • OSGI Service Compendium
  • EMF - Eclipse Modeling Framework
  • eclipse Plug-Ins

... now I only have to wait for the announced books of RCP and OSGI/Equinox - developing ;-)

Yesterday I met Eric Clayberg and Dan Rubel in munich and received one copy of their new „eclipse Plug-ins“ book. Because I couldn't wait, I already had bought it two weeks ago. Now Florian Pirchner has luck, because he'll get this one - think he can use it for his work on redView (Riena EMF Dynamic View).

Also good news for UI developers using Riena Ridgets: the integration / code generation from SWTDesigner will be better in the near future, Eric told me.

         +


BTW: Who doesn't know: Riena is read-to-go for version 1.0. Congratulation !

We' ll also try to make it easy to insert dynamic SWT Components (generated from redView) into SWTDesigner.

Then you'll be able to design complex views using a comfortable GUI Designer and also include dynamic Components (like adress fields, ...) ... of course including databinding, Riena Markers and more.

If you're going to EclipseCon dont miss our session about redView:

And if you couldn't make it or you want to know something more  about the whole project - you can come to my session at JAX 09 / Eclipse Forum Europe 09 conference  -  OSGI Experts Day:

ekke

Wednesday, January 21, 2009

UserInterface in OSGI Enterprise Applications

Christmas time is over...


... and so its time to publish something. The last weeks ware filled with hard and intensive work to make my OSGI Enterprise Application run. Main work at the moment is the design of the Userinterface(GUI).

One part of the GUI - development I'll present at EclipseCon 2009, together with Florian, the Plug-In developer of redView. (redView = Riena - EMF - Dynamic Views)

The idea to create the redView project was born some months ago, as I was discussing with Florian the problems to design a GUI for a complex ERP Enterprise solution. Such an Enterprise Application with hundreds of Entities and high quality and comfort for the users to work with should be designed using a GUI Designer.


I decided to use SWTDesigner from Instantiations as GUI Designer tool - from my experiences a really great application.

An ERP Enterprise Application has many high specialized windows (views), but also hundreds of standard - views. Standard views are looking same and most parts of the views can be generated from the Entity - data model.


Because my ERP Application is model-driven (using openArchitectureWare) the first idea was to generate the Java code of those views. 

But if you generate Views there will be always usecases where the business user wants to change "only something". If you do this using SWTDesigner then the Java code will be changed and cannot be generated again. So its difficult to manage this, if the model changes, attributes were added or so. Of course its a good idea to generate the first version of the views to make it easier to start designing. 


My OSGI Enterprise Application already uses Eclipse Riena for Remote OSGI Services. Riena also has some nice things if you're devloping a GUI.

Riena makes the programming of UI easier and uses Ridgets (encapsulated SWT Widgets). You dont lose flexibility because if you need it, you can access the SWT widgets, too.  

Riena Ridgets also separate UI and Controller and make configuring Eclipse Databinding much easier. 

In Enterprise Businessapplications you always have to decide:

  • should this element be displayed ? (depends on Usecase or Data)
  • is this element required ? (the user must enter data)
  • is it a read-only element ?
  • are there validation rules for this field ? (Phonenumber, email, from-to value, date, ...)

Riena provides the concept of Marker and Validation making programming these things also much easier- and you're sure that it will always look the same in your whole application.

If the code was generated you'll get some informations for Markers and Validation already from the Entity model or Business-Process model.  (An attribute marked as Businesskey or Index should be a required field) So you'll get many defaults generated.

If you're using Riena there are some problems designing with SWTDesigner, because the  code generated from SWT Designer doesnt know the Riena - concept of splitting Controller und UI  - but hopefully in the future the integration will become better.

Riena also includes a complete UI concept with own LookAndFeel, navigation and nice designed perspectives, where a perspective can be a subapplication of the enterprise application. 

The Riena UI is clear, easy-to-use and doesn't confuse a business user with all the functionality of Eclipse RCP. But (for me) there's a downside of this concept: Riena always has only one View open at a fix position. There are many UseCases in an ERP Application where I need more then one View opened including Drag'n'Drop between the Views. I'll see if there will be ways in the future to combine this, because I would like to use some of the cool things Riena provides for  UI - development.

But all of this is no answer how to design Views of Enterprise Applications in model-driven frameworks: what can be generated without losing flexibility in design ?

So we're back at my discussions with Florian last autumn. Our vision:

Wouldn't it be great to have a GUI including all the comfort from Riena, dynamically created at runtime depending on an EMF Metamodel ?

... and these EMF models for each View itself are generated using openArchitectureWare from UML Entity- and Businessprocess - models  ?

... and having a graphical designer - editor, where a business user or - programmer can easyli change the generated Views ? (Drag and Drop to change the order / position of elements, add or change validation rules, add or change Riena Markers, Fonts, Colors,....)

... and wouldn't it be great to combine these changed EMF models with changes from UML models next time generating the Views again ?

This was a vision in october 2008 - now we're knowing that it works ( I already generated some hundred Views for the ERP project successfully) and we'll present it at EclipseCon 2009:

an Entity in UML class diagram (MagicDraw)

oAW Xtend creates EMF elements using UML model with JPA Persistence Profile

redView Designer with generated elements - the yellow marked entry field indicates a Riena Marker „required“

EMF Outline View with generated elements

The Properties View of one GUI element.

Its still some work to finish all aspects of databinding, I18N, Platform - independence (at the moment tested on OSX and Windows), and using Styles and Themes.




Hard weeks, short nights, bit it's fun to work with Florian and to make a vision reality.

Now these are the ways to design the GUI of my ERP Enterprise Application:

  • Standard Views will be generated using oAW as EMF models
  • redView creates dynamic Views from these EMF models
  • Spezial Views can be generated first times from oAW
  • Standard Views can be designed using redView Designer
  • Spezial Views will be designed using SWTDesigner
  • Riena Ridgets, Marker and Validation is used

The last years I was using EMF only indirectly and all my generation of code and artifacts using oAW was based on UML. No I reached the EMF world as so many others, too ;-)

The flexibility of EMF and the good integration into oAW is really great - it is so easy to work with UML and EMF together.

I'll report in detail about all different aspects of designing UI in Enterprise Applications from my point of view. Because its a complex story, I started a new blog series "UI in OSGI Enterprise Applications". Of course I'll also compare the pros and cons using some of the other great UI projects or how to combine them.

... stay tuned.

... the other blog series about Logging, Server, Declarative Services will also be continued - all belongs together.


ekke