Business Services - HrOUG

hroug.hr
  • No tags were found...

Business Services - HrOUG

Razvoj formi pomoćuJDeveloper i ADFRudolf JovanovićPrincipal Senior ConsultantOracle HrvatskaHrOUG071


Oracle ApplicationDevelopment Framework– Reduces the complexity of J2EE development byproviding visual and declarative development– Increases development productivity• Less coding, more reuse• Focus on the application, not the “plumbing”– Encourages J2EE best practices byimplementing standard J2EE design patterns(MVC)– Provides a flexible and extensible environmentby allowing multiple technology choices anddevelopment stylesHrOUG072


Oracle ADFEnd-to-end J2EE Framework• Implements standard J2EE best practices• Model-View-Controller (MVC) design patternRich ClientsRich ClientsWeb and Wireless ClientsControllerModelBusiness Services• Focus on the application, not the “plumbing”• Consolidation and evolution of previous frameworksHrOUG073


Rich ClientADF SwingJSPOracle ADF ArchitectureWeb / WirelessJSFADF FacesViewStrutsJSFControllerMetadata Services (MDS)ADF BindingsEJBJDBCJavaClassesJCAMobile BindingsADF Data ControlADFBusinessComponentsTopLink Data ServicesJDBCPortlet BindingsWebServicesWSPortletsJSR-168WSRPXMLModel(JSR 227)BusinessServicesRelational DataXML DataLegacy DataPackaged AppsHrOUG074


Oracle ADFVisual and Declarative Development• End-to-end Application Development– J2EE & Services• Visual– WYSIWYG editors– UML modelers– Structure pane• Declarative– Structure pane– Property inspector• Code View/Design View Synchronization– No separate generation step - always synchronized– Underlying code always accessibleHrOUG075


Development Tools• JDeveloper (IDE)• ADF Business Components• TopLink• ADF Faces• JHeadstart• BI PublisherHrOUG076


New Tools : Old ToolsForms Reports DesignerJDeveloper All Web Reports DB DesignADF BC Block, BR DB DesignTopLink Block, BR DB DesignADF FacesLayout, SRJHeadstartBI PublisherAllAppl. Designand Gen.HrOUG077


Building an Application1. Create an application workspace.2. Select the technology scope.3. Design the business services for theModel.4. Design the application page flow for theController.5. Create pages for the View.HrOUG078


Creating an ApplicationWorkspace1. Click New Application(Workspace before10.1.3).2. Enter a name.3. Select the applicationtemplate.HrOUG079


Business Services Choices• ADF Business Components• TopLink• EJB• Web Services• JavaBeans• Build Your OwnHrOUG0710


Building an Application1. Create an application workspace.2. Select the technology scope.3. Design the business services for theModel.4. Design the application page flow for theController.5. Create pages for the View.HrOUG0711


ADF Business Components• Declarative “SQL based” persistence– Declarative, familiar approach for 4gl developers• Wizards, Editors, and UML Modelers– Visually design and modify declarative component settings• XML-Configured, Lightweight JavaBeans• ApplicationModule - Business Service Component– Use as JavaBean, EJB, Web Service• ViewObject - Data Access Component– Performs SQL queries and coordinates with entity objects• EntityObject - Business Domain Component– Encapsulates business domain data and validationHrOUG0712


TopLink• Object-Relational Mapping– JPA: Java Persistence API (EJB 3.0/SE)– POJO in any Java container/architecture (EE/SE)– EJB 2.1 CMP and BMP (OC4J)• Object-XML– JAXB– Non-Intrusive (meet in the middle) mapping• EIS mapping using JCA Resource Adapters– XML mapping leveraging OXM and CCI mapping– Support MQSeries, OracleAQ, Sun JCA, XML Files, …HrOUG0713


Business Logic ValidationClient tierMiddle tierWeb ContainerEIS tierADF Business Services TierControllerModelADFApplicationModuleADFViewObjectADFEntityObjectDatabaseClientValidationBusiness LogicValidationDatabaseValidationHrOUG0714


Add Custom ValidationEntity ObjectCustomersIdNameStatusEmailOrdersIdCustomerIdOrderModeOrderTotalValidation TypeAttributeMethod ValidatorDomainEntityMethodValidatorBusiness RuleName must notbe longer than50 charactersE-mail mustcontain an "@"and "."Customer e-mailmust existIf the OrderModeis "ONLINE"15


Building an Application1. Create an application workspace.2. Select the technology scope.3. Design the business services for theModel.4. Design the application page flow for theController.5. Create pages for the View.HrOUG0716


Building an Application1. Create an application workspace.2. Select the technology scope.3. Design the business services for theModel.4. Design the application page flow for theController.5. Create pages for the View.HrOUG0717


JSR 227 – J2EE Data Binding• Data Controls– Unified description of any Business Service• Collections• Attributes• Operations• Data Bindings– UsagesJSPSwingJSFData BindingsData ControlEJBWebServicesTopLinkJavaClassesBusinessComponentsData BindingServiceBusinessServicesHrOUG0718


Using JHeadstart• Develop new application• Migrate Forms modulesfrom Designer to ADF FacesHrOUG0719


Using JHeadstart to Develop aNew Application1. Create an application workspace (JSF, ADF BC)2. Specify base classes and database connection for Model3. Create new ADF BCs in the Model project (from databasetables)4. Adjust the Data Model of the Application Module5. Test the Application Module6. Enable JHS in the ViewController project7. Create the initial JHS Application Definition8. Edit (refine) JHS Application Definition9. Generate the application, run and test10. Repete steps 8-9 until satisiedHrOUG0720


Using JHeadstart to MigrateForms from Designer1. Create an application workspace2. Enable JHS on ViewController project3. Create new JHeadstart Designer Generator on Model project4. Select Designer Workarea connection5. Select Forms module(s) from Designer workarea/application6. Select database connection for ADF BC7. Specify ADF BC package name8. Specify base classes and View project9. Check summary and run JDG10. Edit JHS application definition11. Generate application and runHrOUG0721


Create an application workspaceHrOUG0722


Enable JHS on ViewController projectHrOUG0723


Create new JHeadstart DesignerGenerator on Model projectHrOUG0724


Select Designer Workarea connectionHrOUG0725


Select Forms module(s) from DesignerHrOUG0726


Select database connection for ADF BCHrOUG0727


Specify ADF BC package nameHrOUG0728


Specify JHeadstart specific settingsHrOUG0729


Check summary and run JDGHrOUG0730


Inspect created objects and logHrOUG0731


Edit JHS application definitionHrOUG0732


Edit JHS application definitionHrOUG0733


Generate application…HrOUG0734


How to learn?• OTN ADF/SOA tutorials• JHeadstart tutorials• Developer Guides– Oracle ADF Developer’s Guide– Oracle ADF Developer’s Guide For Forms/4GL Developers– Oracle SOA Suite Developer’s Guide– Oracle TopLink Developer’s Guide– Oracle Jheadstart for ADF Developer’s Guide• Oracle Universoty CoursesHrOUG0737


The J2EE ParadoxIncreasing Project Complexityand Developer Skills RequirementsApplication Complexity and CriticalityType “A” DevelopersType “B” and “C” organizationsAverage Developer Skills1998 1999 2000 2001 2002 2003 2004 2005 2006Source: Gartner, Inc.HrOUG0738


Is it Oracle Forms Yet?HrOUG0739


NO!But it’s a close second!( Peter Koletzkefrom “Quovera”on Oracle Opwn World 2006 )HrOUG0740


Truth!Coming in 2008ADF 11gbetter then Forms!HrOUG0741


Hvala na pažnji!I ja imam mnogo pitanja …HrOUG0742

More magazines by this user
Similar magazines