Presentation is loading. Please wait.

Presentation is loading. Please wait.

.  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection.

Similar presentations


Presentation on theme: ".  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection."— Presentation transcript:

1

2  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection and loose coupled approach of having an MVC architecture.  Rich UI achieved using ExtJS 4.0 Framework at UI layer.  Communication achieved using AJAX calls (XMLHttpRequest) from Client to Server using JSON objects.

3 Architectural view of ECMS

4

5

6

7

8

9

10

11

12

13

14

15

16  A reference model developed for an important use case (Air Job) including UI widgets, controllers, services and DAOs.  After full requirement analysis Entities and DAO layer interfaces are finalized, and implemented.  Individual was assigned use cases to construct both UI components and Service components.

17 Requirement Gathering and Analysis Requirement Gathering and Analysis Reference application development Reference application development Design and Development Of Use Cases Design and Development Of Use Cases Entity and DAO Implementation Entity and DAO Implementation Improvement And updates in Reference App Improvement And updates in Reference App Continuous Integration and Test Continuous Integration and Test

18

19

20

21  All use cases has their entry point at Grid Panels, all Form panels are reached by selecting grid data record and by pressing “Show Details” Button on the grid.  Grid Panels are build much powerful to provide functionalities such as o Filter/Search Records ( Including advanced search) o Refresh the Grid without navigating away from the page. o Pagination. o Add, Remove and Update records, all in one request to server (which enhance usability and makes less server calls)

22

23  Optimistic Concurrency control mechanism is used.  This is achieved by version checking against session and retrieved objects, upon any update and delete.

24 RequestContext Holder Request Session Version DAO ECMS DB

25 Plug and play way of apply security to the web application. More configuration less of coding to maintain the security aspects of the application. Aspect Oriented Programming model (AOP) Spring Security 3.0 release is experimented and successfully plugged into Spring Framework 3.x. Secure and extremely secure folders are created to secure static and dynamic contents of server. Access level of such folders are described in security configuration xml. Cryptography is used to protect password from exposure.

26 Security Context Authentication Object WebAuthenticatio nDetails Object User Authority

27

28  Following important events are used to make server calls upon events trigger when User interacts with the system. o beforeShow (to assemble different forms and their data before it shown to the user.) o afterRequest (to fetch the records to sync UI store with database asynchronously and avoid any race conditions) o beforeRequest (to set parameters to the request) o beforeDestroy (to avoid destroying the pop-up windows and forms to enhance the performance of the system) o expand (upon expanding the accordion layout’s panels) o Collapse( upon colapsing the accordion layout’s panels)

29  During the coding, many race conditions are discovered, because of asynchronous nature of the requests.  Among such scenarios the most encountered one is, when a code segment is in under UPDATE or CREATE operation, during this time sending a SELECT request for the same record within the same session is found to be a race condition.  Above race condition identified, and resolved by using afterRequest event handle the SELECT request to update the UI Store.

30 Race condition here Result with no updates

31 After request event fired

32

33  Novelty of technology at UI layer. o ExtJS documentation studied and referenced. o Wiki pages were used to share the knowledge within the team. www.code.google.com/p/iss2011s7/w/list  JSON Parser couldn't able to parse if object properties contains null. o Work around Null values are replaced with empty string before it transmitted from server to UI layer. o Long term fix strategy JSON Parser to be fixed.

34  Handling complex objects at UI Layer (ExtJS) o mapping between objects  Lazy Fetching o Lazy fetching was not able to achieve because of JSON Parser limitation of unable to handle null values.

35  Refreshing the stale records by estimating user’s operation Rest Time. o UI layer can be enhanced to have capability to refresh the data grids by estimating user’s rest time, and if it reaches a particular threshold value, the system would refresh the data grid by using beforeActivate event of the RowEditor. o Above would avoid user to get into a situation of updating a stale record on grid.

36  UI Update for Mobility in work o Proposing client for an update of UI version for Tablets and Smart Phones. o ExtTouch( A mobile javascript framework) shall be used to built tablet and smart phone applications. o HTML 5 standards. o Only User Interface shall required to update and service shall remain as it is.  This is to have an advantage of mobility and instant access to the application with greater performance.

37  Integration Requirement o Understand from client that operations are not integrated to the Accounts system. o Proposal for an integration between both of the systems can be consider.

38  Concurrent updates acknowledgement- o Grid Panel records can be highlighted in red color of text to notify users that the local copy of the record is stale or no more fresh, and any updates to the stale data will not be persist in database. o The above can be achieve by Observer Design Pattern and Push model of communication from server.

39  After getting full understanding of the domain (cargo management), we would like to go for more generalized and multi-tenancy approach of building this application.  Metadata entity model can be used instead of rigid domain model, by which we can achieve customization requirements of data grids, forms and any other view panels for different customer.  Spring’s web service framework can be used to expose server side operation as web services, if necessary.  Releasing it as a software as a service (SaaS).


Download ppt ".  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection."

Similar presentations


Ads by Google