JavaFX and JEE 7

1,522 views
1,398 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,522
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
26
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

JavaFX and JEE 7

  1. 1. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 131Java FX for Java Batch(JSR-352) and Spring BatchVijay NairArchitect (OFSSL)
  2. 2. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 132The following is intended to outline our general product direction. It is intendedfor information purposes only, and may not be incorporated into any contract.It is not a commitment to deliver any material, code, or functionality, and shouldnot be relied upon in making purchasing decisions. The development, release,and timing of any features or functionality described for Oracle’s productsremains at the sole discretion of Oracle.
  3. 3. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 133Program Agenda Background/Capabilities Architecture Server Agent Component – Design and Tools Client Component – Design and Tools Short Demo
  4. 4. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 134Background Batch Operations are among the most critical operations performed byIT staff in a bank Batch Operators need an easy to use system to help them maintainbatch jobs across systems and monitor them in real time Pilot project utilizing Java FX and JEE 7 to help address this space
  5. 5. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 135CapabilitiesVisualize Job Meta Data (Names/Descriptions/Thresholds/Definitions/ScheduleExpressions) Job Step Meta Data (Names/Descriptions/Thresholds/FailureActionable) Job Process Flows (Hierarchies/Dependencies/Decisions)Configure MonitorConfigure New Jobs (Job Definitions/StepDefinitions/Flows and Schedules) Authorization of maintenance Job Testing Purging Policies (Job/Step Execution Data)
  6. 6. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 136CapabilitiesMonitor Real Time Job Status Monitoring (RunningJobs/Failed Jobs/Threshold Time ExceededJobs) Step Monitoring (Running Steps/Failed Steps/Threshold Time Exceeded Steps) Diagnosis (Job Failure Reasons/StepFailure Reasons/What to do ?) Actions (Stop/Abandon/Restart)Configure MonitorReport Job/Step Execution Reports(Historical/Current) Time Series Analysis (Job/Step Executions) Job Hierarchies
  7. 7. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 137Will result in a….
  8. 8. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 138Architecture – JEE 7USER INTERFACEVIEWS CONTROLLERSTRANSFORMATIONSERVICE CLIENTSCONNECTORSDATA SERVICES EXECUTION SERVICES TIMER SERVICESORM BATCH RUNTIME INFRASTRUCTUREMySQL JavaFX 2.2.7FXML LayoutsControllers JAX-RS 2.0 (JSR-339) - RESTful Clients Eclipselink MOXy – JSON Provider EJB 3.2 (JSR-345) - RESTful/TimerServices CDI 1.1 (JSR-346) - DI JPA 2.1 (JSR-338) - ORM/PL-SQL Support Java Batch 1.0 (JSR-352) - BatchRuntime Infrastructure Eclipselink MOXy - JSON Provider MySQL – Batch Runtime DatabaseSERVER AGENTDATABASE/BATCH SYSTEMSEXTERNAL SYSTEMSRESTful JSON
  9. 9. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 139Architecture - PackagingFCBSMODELMySQLSERVER AGENTFCBSWEBAPPFCBSCLIENTAPPDEPENDS ONSHIPS WITHDEPENDSONSHIPSWITHACCESSESACCESSES
  10. 10. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1310Architecture – Spring BatchUSER INTERFACEVIEWS CONTROLLERSTRANSFORMATIONSERVICE CLIENTSCONNECTORSDATA SERVICES EXECUTION SERVICES TIMER SERVICESORM BATCH RUNTIME INFRASTRUCTUREMySQL JavaFX 2.2.7FXML LayoutsControllers Jersey Client - RESTful Clients Jackson – JSON Provider Spring MVC + WS – RESTful Services Spring Core - DI JPA 2.0 - ORM/PL-SQL Support Spring Batch - BatchRuntime Infrastructure Jackson - JSON Provider MySQL – Batch Runtime DatabaseSERVER AGENTDATABASE/BATCH SYSTEMSEXTERNAL SYSTEMS
  11. 11. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1311Server Agent – Java Batch 1.0 (JSR-352) JEE 7 standard for Batch Jobs Runtime for Batch Operations including start/stop/abandoning andmonitoring of the sameWhy Java Batch ?How have we used Java Batch ? Configure Jobs across systems Spawn Jobs Monitor Jobs
  12. 12. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1312Server Agent – Java Batch 1.0 (JSR-352)CHECKPOINTDATAEXECUTIONINSTANCEDATAJOBINSTANCEDATAJOBSTATUSSTEPEXECUTIONINSTANCEDATASTEPSTATUSPROVIDED TABLESJOBMETADATA Name Description Definition Threshold ScheduleExpressionSTEPMETADATA Name Description Threshold StepFailureActionEXTENSIONSJOBPARAMETERSMETADATA Parametername ParametervalueEXECINSTANCEFAILREASON ExecId ExecDate FailureReason Status
  13. 13. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1313Server Agent – Java Batch 1.0 (JSR-352)Application Job Process FlowJob FlowDecisionFlowDecisionStepsStepsStepsBatchletsBatchletsJob ListenersStep ListenersStep ListenersExitSystem ASystem B
  14. 14. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1314Server Agent – Java Batch 1.0 (JSR-352)
  15. 15. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1315Server Agent – EJB 3.2 / JAX-RS 2.0RESTful Services RESTful Services exposed as Stateless EJBs Eclipselink MOXy as the JSON ProviderTimer Services Timer Services exposed as Stateless EJBs
  16. 16. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1316Server Agent – CDI 1.1Dependency Injection JEE Resource Injection Batchlets configured as “Named” resources Batchlets loaded via “Named” references
  17. 17. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1317Server Agent – JPA 2.1ORM JPA 2.1 Models PL/SQL support
  18. 18. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1318User Interface – Why JavaFX ? Productivity– Rapid Application Development using Tooling (Netbeans andSceneBuilder)– Testing and…– We are coding only in JavaWhy JavaFX ?
  19. 19. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1319User Interface – Why JavaFX ? Capability– Layouts built using WYSIWYG– Control Set (Basic and Advanced)– Eventing (e.g. Value Change Listeners, Thread State Listeners)– CSS stylingWhy JavaFX ?
  20. 20. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1320User Interface – Why JavaFX ? Monitoring using VisualVM Stability and Acceptance– Extremely Performant– Class of users are familiar with Desktop ApplicationsWhy JavaFX ?
  21. 21. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1321User Interface – ViewsFXMLVIEWS Screen Building using Scene Builderwhich generates FXML– Layout Containers– Place Controls– Associate Events– Style Map to a Controller ClassFXMLGeneratesControllerAssociate
  22. 22. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1322User Interface – Controllers Java Class which has– Controls injected using “@FXML”– “Service” threads to load data– Event listeners to populate dataor respond to other eventsController Implementation
  23. 23. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1323User Interface – Client Services Controllers use JAX-RS 2.0 clients to load data with EclipselinkMOXy as the JSON ProviderJAX-RS 2.0 (JSR-339) Client API
  24. 24. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1324Graphic Section Divider
  25. 25. Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1325

×