Summarize the J2EE Development - MVC using Oracle Application Development Framework (ADF) episode artwork

EPISODE · May 6, 2006 · 15 MIN

Summarize the J2EE Development - MVC using Oracle Application Development Framework (ADF)

from Mandy's Podcast · host Mandy

 Oracle ADF Overview – Same demo as Oracle ADF Quick Tour Model: Web Services Using Web Services as ADF Data Controls. This demo shows how easy it is to create a Data Control from a web service and use it in a Struts controlled JSP application. Here is a live connection to a UDDI registry of a partner company. It contains a number of web services. You can view the WSDL file of a service. Looking at the WSDL you can see that is has one operation – sayHello. That takes a string parameter. You can create a Data Control for this web service using it’s context menu. The required files are generated into a selected project. And the data control is displayed in the palette. Now you can use this data control in a struts page flow. Use the struts page flow component palette to build up your application page flow. The first page in this page flow is a JSP to capture some data in a form. Double click the page to create the underlying JSP page. Insert another page – this time a data page that is bound to a struts action. Go to the setup.jsp tab. Now you can edit the JSP page. Add a Struts HTML from that is aware of the struts actions. This list displays any struts actions that have been defined in the page flow. In this case only greeting.do has been defined. Now you‘ve defined a link from this form to the greeting.do action. Add a text field to the new form and use the property inspector to add properties to it. Give it a name to pass a parameter from the page to the struts action. Having defined a link from the jsp to the greeting action, the diagram can be refreshed to display it. You need to add the sayHEllo operation to the /greeting action. Drop it as a method onto the action. Use the structure pane and the property inspector to see how the /greeting action mapping has handled the sayHello data control. The Action Mapping for /greeting shows that 1 parameter is expected. Write Expression Language to use the parameter created earlier. Now you can define the JSP page that the /greeting action is bound to. Display the result returned by the web service on this page. Dragging the return on to the diagram generates Expression Language to do this. Use the features of the Editor to add content and style to your page. Use the embedded OC4J to test your page flow. The web service returns the expected greeting. In this demo you have seen how easy it is to use a web service as a data control in an ADF application. Model: Enterprise JavaBeans Development Developing Business Services with EJBs using Oracle. Oracle JDeveloper 10f is a J2EE development environment with end-to-end support for developing, debugging, and deploying J2EE applications and Web services. This online demo will walk you through building business services with EJBs using Oracle JDeveloper 10g. We will create a new application workspace, which will use JSP struts, EJB application template. The JSP, struts, ejb application template created and application with two projects. Model & ViewController. In the next few steps we will create business services using EJBs. Create a new EJB Diagram. EJB Modeler enables modeling session, entity, and message driven beans. Users can model session beans, add properties and business methods which are synchronized with the source files. Users can model entity beans and forward engineer them as database tables or reverse engineer database tables as Container Managed Persistence (CMP) entity beans with a simple drag-and-drop action. Foreign key relationships in the database are also reverse engineered as Container Managed Relationships (CMR). Reverse engineer Departments and employees tables as CMP entity beans. Departments and employees entity beans in applications navigator. Create a session bean which will act as a façade for departments and employees entity beans. Using the EJB Modeler, users can model the relationships between entity beans or references between EJBs. Adding a reference between EJBs automatically synchronizes the deployment descriptor by generating the appropriate or tags along with the lookup code in the bean class. JDeveloper provides an easy mechanism to generate Data Transfer object design pattern for CMP entity beans. Select entity bean in EJB Diagram and choose generate|Data transfer object. The EJB Module Editor provides a common user interface for editing all the EJBs in the ejb-jar.xml deployment descriptor. The relationships panel in the editor lets developers add, edit, and delete the CMR relationships between entity beans intuitively. The methods panel lets developers add, edit, and delete different types of EJB interface methods. The EJB Module Editor lets developers easily make changes to different types of bean properties such as security roles, methods permissions, and container transactions in the deployment descriptor. All modifications made in the EJB Module Editor are synchronized with model, source, and deployment descriptor. Double clicking on EJB would bring up the EJB module editor. Add showDepartments attributes which would return a collection of Department Data Transfer objects. The EJB Verifier provides an easy way to detect deploy-time errors. The EJB Verifier validates ejb-jar.xml against the Document Type Definition or DTD and verifies the EJB classes for inconsistencies. For more information, visit the oracle technology network at otn.oracle.com. There you’ll find additional online demos, technical whitepapers, code samples, product downloads and much more. Model: TopLink TopLink Mapping Editor in Oracle JDeveloper 10g. In this demo, we will introduce the TopLink Mapping editor. First we will create a new Java Class diagram for our sample HR application. Select General then diagrams. Select Java Class Diagram and click OK. We will rename the diagram for the project. JDeveloper creates the new diagram and adds the diagram to the application model. Now we will add the database tables to the diagram. For this application, we will use the Departments and Employees tables. In this demo, JDeveloper will automatically reverse engineer the TopLink mappings from a Java class diagram. However, the TopLink mapping editor also supports forward engineering and meet in the middle use cases. Simply drag the database tables onto the diagram. JDeveloper allows you to create different elements from the tables. In this demo, we will create java classes. JDeveloper created the .java class files for both tables and added them to the application model. Now we will open the TopLink mappings editor and review the TopLink mappings created by JDeveloper. Expand the TopLink Mappings elements in the Structure window. JDeveloper creates TopLink descriptors for each Java class and maps each attribute. The TopLink Mapping editor also allows you to configure your deployment information and sequencing information to configure TopLinks’ other runtime defaults. When you select a TopLink descriptor the mapping editor displays the descriptor’s information. You can also define custom queries and query keys for each descriptor. In addition, all of TopLink’s advanced properties are available. For this direct to field mapping, the TopLink Mapping editor provides several options. For relationships, such as this one to many mapping, the TopLink Mapping editor provides collection options and reference information. The mapping editor also provides a mapping report that will identify any problems in your model. This project contains no errors! Now we will generate a deployment descriptor. JDeveloper compiles the source, verifies the mappings, and generates the deployment descriptor. Model: ADF Business Components Developing Business Services with Oracle ADF Business Components. The steps are: modeling business components, adding validation rules, adding formatting rules, and testing with a swing based tester. Create a connection to a database. Then we’ll use the UML modeler to define the business service layer. Next Create Business Components based on existing tables in the database. We can choose our implementation of database access from Java. Here we are editing entity object attributes. Now were adding a validation rule for an attribute declaratively. Next we’re generating a data control for the model layer. Then we’ll add formatting and heading for attributes. Then test our business components using a simple swing based tester. The heading and formats are shown in the UI. We can see that the validation rule is working. Controller: Struts JDeveloper 10g editing apache struts page flow. This demonstration provides an overview of the apache struts page flow editor in oracle jdeveloper 10g. The struts page flow can be opened by editing the struts-config.xml file directly, or by using the open struts page flow context menu option on any project with the struts technology scope enabled. The page flow diagram provides a visual way of editing and documenting your page flow. Actions, page forward actions and data-bound pages are all represented as shapes on the diagram. Action forwards, defined in the struts sml, are shows as solid lines linking the action shapes. They are labeled with the name of the forward. Explicit links between pages or between pages and actions, such as those defined in html:form, html:lilnk or a href tags, are shown as dashed lines. Form bean usage is indicated by an overlay icon. Form bean usage is indicated by an overlay icon. The diagram provides several aids for visualizing and navigating around large page flows. The diagram also provides various tools to help with the layout of the flow, such as snap to grid and alignment modes. Additionally, the developer can customize the colors and fonts used and add annotations to the diagram. Source view gives you access to the underlying struts xml configuration file. The xml view is fully validated and synchronized with the diagram view. You are able to edit the struts definition in either mode. The xml view provides code insight and syntax highlighting to reduce the chances of manual coding errors. Changes will also be validated against the struts dtd. As well as the diagram and xml views, the JDeveloper property inspector can be sued to edit the struts metadata. Values can be directly edited in the property inspector, which is synchronized with the underlying xml. List of values are shown for properties such as the form-bean name or page names. You can also categorize the property list to make it simpler to locate the attributes you need to change. Finally, the structure pane provides an alternative view on the configurations structure and provides a useful way of navigating to some of the non-visual elements. Visual elements such as actions can be created directly in the diagram using the component palette. Incomplete actions are marked with a warning, indicating that there is no code or page associated with this action. In summary, the page flow editing in jdeveloper 10g provides the struts developer with a highly intuitive visual authoring environment combined with the flexibitlity to edit the struts xml directly if required. View: JSP Web services application development with oracle adf. The steps are creating a business service from a web service, creating a struts page flow, visually editing the jsp pages, using struts and html jsp tag library, binding web services to the jsp user interface. We create a business service data model from existing web serves in a public uddi. All we need is a pointer to the wsdl. Then we create a struts page flow diagram for our application. We have a welcome page to get the parameter, an action to invoke the web service and another jsp page to show the results. Next we’ll edit the jsp page to get the stock symbol. Now we’ll add a struts form tag that will invoke the action. There are several ways to edit your code, the property inspector, OR the code can be changed directly and the visual editor is kept in synch. Getting the results of a web service into a jsp page is a simple drag and drop operation. Then we can run the completed application on the embedded j2ee container. View: Swing - ADF JClient Building ADF JClient applications using business components. ADF JClient in Oracle JDeveloper 10g supports declarative development of rich client applications using Java Swing. This demo is an example of how to develop a master/detail JClient application in oracle JDeveloper 10g using ADF business components. The same development steps are used when building jclient applications for other datasources like TopLink or enterprise java beans. An empty jclient form is a subclass of the java swing jframe class that implements the jclient interface. Swing components in adf client are bound to business services like adf business components by using the data control palette. View: ADF UIX ADF UIX Complete application sample. This demo illustrates how easy it is to build an application using oracle jdeveloper 10g production. The necessary business services have already been created as well as a simple struts page flow diagram. The demo will focus on building the view based on adf uix technology. By double clicking on the data page node /main in the struts page flow diagram, we can wire our data page to a specific page. By default the name of the page will be the same as the data page action node, and depending on the technologies selected for the project, there will be a list of available file types. Alternative you can use the browse button to wire an already existing page to the action. Now let’s create a master detail page with a department form with navigation and an employee table using the new data control palette. By specifiying an event we can send an event result to the struts controller that can interpret as an edge out from the data page action wired to this page. In this case, we have a forward called success pointing to the employee form page. Adf uix contains a set of components that helps you with the layout of your page. In the adf uix technology there is a term called named children. You can look at named children as slots where you can add components. One of the cool features you get for free building applications with oracle jdeveloper 10g and adf uix is partial page rendering PPR. In our example when selecting a department it is only the department form and employees table that is refreshed and not the entire page.

Episode metadata supplied by the publisher feed · Published May 6, 2006

Oracle ADF Overview – Same demo as Oracle ADF Quick Tour Model: Web Services Using Web Services as ADF Data Controls. This demo shows how easy it is to create a Data Control from a web service and use it in a Struts controlled JSP application. Here is a live connection to a UDDI registry of a partner company. It contains a number of web services. You can view the WSDL file of a service. Looking at the WSDL you can see that is has one operation – sayHello. That takes a string parameter. You can create a Data Control for this web service using it’s context menu. The required files are generated into a selected project. And the data control is displayed in the palette. Now you can use this data control in a struts page flow. Use the struts page flow component palette to build up your application page flow. The first page in this page flow is a JSP to capture some data in a form. Double click the page to create the underlying JSP page. Insert another page – this time a data page that is bound to a struts action. Go to the setup.jsp tab. Now you can edit the JSP page. Add a Struts HTML from that is aware of the struts actions. This list displays any struts actions that have been defined in the page flow. In this case only greeting.do has been defined. Now you‘ve defined a link from this form to the greeting.do action. Add a text field to the new form and use the property inspector to add properties to it. Give it a name to pass a parameter from the page to the struts action. Having defined a link from the jsp to the greeting action, the diagram can be refreshed to display it. You need to add the sayHEllo operation to the /greeting action. Drop it as a method onto the action. Use the structure pane and the property inspector to see how the /greeting action mapping has handled the sayHello data control. The Action Mapping for /greeting shows that 1 parameter is expected. Write Expression Language to use the parameter created earlier. Now you can define the JSP page that the /greeting action is bound to. Display the result returned by the web service on this page. Dragging the return on to the diagram generates Expression Language to do this. Use the features of the Editor to add content and style to your page. Use the embedded OC4J to test your page flow. The web service returns the expected greeting. In this demo you have seen how easy it is to use a web service as a data control in an ADF application. Model: Enterprise JavaBeans Development Developing Business Services with EJBs using Oracle. Oracle JDeveloper 10f is a J2EE development environment with end-to-end support for developing, debugging, and deploying J2EE applications and Web services. This online demo will walk you through building business services with EJBs using Oracle JDeveloper 10g. We will create a new application workspace, which will use JSP struts, EJB application template. The JSP, struts, ejb application template created and application with two projects. Model & ViewController. In the next few steps we will create business services using EJBs. Create a new EJB Diagram. EJB Modeler enables modeling session, entity, and message driven beans. Users can model session beans, add properties and business methods which are synchronized with the source files. Users can model entity beans and forward engineer them as database tables or reverse engineer database tables as Container Managed Persistence (CMP) entity beans with a simple drag-and-drop action. Foreign key relationships in the database are also reverse engineered as Container Managed Relationships (CMR). Reverse engineer Departments and employees tables as CMP entity beans. Departments and employees entity beans in applications navigator. Create a session bean which will act as a façade for departments and employees entity beans. Using the EJB Modeler, users can model the relationships between entity beans or refer(continued)

PodParley-generated summary based on available episode metadata and transcript content.

NOW PLAYING

Summarize the J2EE Development - MVC using Oracle Application Development Framework (ADF)

0:00 15:21

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

That Hoarder: Overcome Compulsive Hoarding That Hoarder Hoarding disorder is stigmatised and people who hoard feel vast amounts of shame. This podcast began life as an audio diary, an anonymous outlet for somebody with this weird condition. That Hoarder speaks about her experiences living with compulsive hoarding, she interviews therapists, academics, researchers, children of hoarders, professional organisers and influencers, and she shares insight and tips for others with the problem. Listened to by people who hoard as well as those who love them and those who work with them, Overcome Compulsive Hoarding with That Hoarder aims to shatter the stigma, share the truth and speak openly and honestly to improve lives. The Small Business Startup School – Business Notes | Financial Literacy | Retail Psychology – For Professionals & Entrepreneurs The Small Business Startup School Inc. Starting or buying a small business? While personal circumstances may vary, business patterns remain timeless. On The Small Business Startup School, we explore strategies, insights, and practical solutions to help entrepreneurs confidently navigate their journey.Hosted by Ola Williams—a retail entrepreneur, fintech founder, and financial coach with over two decades of experience—this podcast marries financial awareness and retail psychology with optimism to deliver actionable takeaways.Join us to learn, grow, and connect as we uncover the keys to business success.Let’s continue to learn together and be encouraged to keep on connecting! DIOSA. Carolina Sanper This podcast is a sacred space created by Carolina Sanper where you connect with your inner wisdom and embody your magnetic feminine power.It is the realization that the mystical realm is where you plant the seeds of your desired reality.It is a portal to your true essence: awareness, presence, and receiving with ease. Welcome home, DIOSA. 🖤 XXX Tech by SOVRYN Dr. Brian Sovryn The crossroads between technology, sensuality, and metaphysics - and the longest running anarchist podcast in the world! Brought to you by Dr. Brian Sovryn.

Frequently Asked Questions

How long is this episode of Mandy's Podcast?

This episode is 15 minutes long.

When was this Mandy's Podcast episode published?

This episode was published on May 6, 2006.

What is this episode about?

 Oracle ADF Overview – Same demo as Oracle ADF Quick Tour Model: Web Services Using Web Services as ADF Data Controls. This demo shows how easy it is to create a Data Control from a web service and use it in a Struts controlled JSP...

Can I download this Mandy's Podcast episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!