Upload
laurent-guerin
View
1.986
Download
0
Embed Size (px)
DESCRIPTION
Telosys use case How to migrate from Client/Serverto Java/Web ?
Citation preview
How to migrate from client/server to Java/Web ?
Laurent Guérin. SOGETI : National Practice Leader "Open Solutions" . OW2 : Telosys project leader [email protected]
Telosys use case
Laurent Guérin - 2 octobre 2009 22
The context
Laurent Guérin - 2 octobre 2009 3
The company
• Activities & key figures ( year 2008 ) :
� Activities :
- Security 80 %( workplaces protection )
- Technology
- Logistics
- Mobile security
- Other …
� Size : 6400 employees
� Turnover : 214 million €
� Location : France & Belgium
Laurent Guérin - 2 octobre 2009 4
The software ( the "old" application )
• Classical "client/server" application (Visual Basic) with a relational database
• Used by security officers to manage a workplace supervision
� Events
� Team
� Equipments
� Logging
� etc...
• Multilingual (French, English, Dutch)
• Installed on each site
Laurent Guérin - 2 octobre 2009 5
The initial situation ( Client / Server )
Installation required on each site !
Installation& update
Relational Database
Application+ runtime
Application+ runtime
Application+ runtime
Application+ runtime
Application+ runtime
IT Resources management !
Runtimes !
Not accessibleout of the VPN
The number of sitesis growing quickly2007 =
3 x nb of sites
in 2006
Laurent Guérin - 2 octobre 2009 6
The target ( new Web application )
Database Server
Open architecture( ���� extranet ? )
Application Server
Standardenvironment :. http. HTML. XML. Java. etc …
���� Potential R.O.I.
Potential new peripherals
"Online application" accessible via a browser
Nothing to install
http
Lightweight client
Laurent Guérin - 2 octobre 2009 7
The problematic
• Technical migration ( + few evolutions )
� No real functional value added
� Main goal : reduce the cost of the IT resources management
• => The R.O.I. depends on the project efficiency : productivity required !
• The user experience must be preserved
� => good user interface
� => list of events must be up to date on the screen
� etc …
AJAXneeded
Laurent Guérin - 2 octobre 2009 88
The migration
Laurent Guérin - 2 octobre 2009 9
Project based on Open Source software
• Infrastructure & middleware
� Linux
� Apache
� Tomcat
� MySQL
• Java framework
� Telosys framework
• IDE
� Eclipse
� Telosys tools (plugins)
100 %free
100 %simple
Cost ����
Efficiency ����
LGPL
Laurent Guérin - 2 octobre 2009 10
Why Telosys ?
10
Laurent Guérin - 2 octobre 2009 11
Telosys framework
• Telosys is a "global framework"( "full-stack" / "multi-aspects" framework )
Only one ".jar" file ( telosys.jar )
"Keep it simpleand pragmatic"
Laurent Guérin - 2 octobre 2009 12
Telosys framework : the "only" framework
12
Laurent Guérin - 2 octobre 2009 13
ScreenData
Telosys framework : the screens
13
<%@ taglib uri="/telosys/widgets" prefix="t" %><t: screenbody data= "employe" >
<t: label x="40" y="60" txt="Code : " cl="PK_field_label" / > <t: label x="40" y="100" txt="Name : " />
<t: field x="200" y="60" id= "code" data=" #" size="6" maxlength="6" /> <t: field x="200" y="100" id= "name" data=" #" size="30" maxlength="30" />
<t: button x="460" y="100" id="b1" txt=“My button" onclick="…" />
</t: screenbody >
. code
. name"employe"
"societe"
"xxxx"
DAO
mappingEMPLOYE. Code. Name
ScreenManager
XML / http
<employecode="" name="" />
JSP + taglib
ScreenMap
GeneratedJavaBean( POJO )
Client/Server dialog based on AJAX=> Well suited for
C/S migration
Very close toClient/Serverscreens definitions
Example :
V.B. ".frm"
Based on "widgets"
GeneratedDAO
No HTML
Laurent Guérin - 2 octobre 2009 14
Telosys tools : code generation
14
Templates
FullJava
Classes
Generation
Generation
Reliable(alwaysup to date)Database
Templates
JavaClasses
Skeletons
FullCRUD
Screens
plugins
Reposi-tory
(XML)
The existing
C/Sdatabase
TelosysWizards
The code generation improve dramaticallythe productivity
Laurent Guérin - 2 octobre 2009 15
Telosys tools : a short demo ...
How to …
2 – generate all the "Data Access Layer"
1 – generate the lightweight repository
Laurent Guérin - 2 octobre 2009 16
The benefits
• High productivity� Global ���� simple & efficient
� Code generation
• Screens behavior � Very close to original C/S screens
� Good user experience
� Natively based on AJAX
� Client/server dialog
• High performances � Scalability
• Natively multilingual
workload gain :from 20% to 40%
Laurent Guérin - 2 octobre 2009 17
Generalization & extensions
• Visual Basic
• Power Builder
• NSDK / NatStar
• Delphi
• WinDev
• Oracle Forms
• etc …
All client/server applications based on a relational database can be migrated in the same way
New tools :automaticscreenstransfor-mation
Same DB
Laurent Guérin - 2 octobre 2009 18
Reliableframework
Efficienttools
Questions ?
Laurent Guérin - 2 octobre 2009 19
Web links
• OW2 : http://www.ow2.org
• Telosys : http://telosys.ow2.org
• Telosys LinkedIN group :
http://www.linkedin.com/groups?gid=1340197