Oracle JHeadstart - Forms2ADF Generate/Migrate tutorial




Today i have covered in this post how to generate Oracle 10g forms to ADF through Oracle Jheadstart and you can download jheadstart/jdeveloper from below link.
Jheadstart download center .
Jdeveloper download center.

Install Oracle JHeadstart Using “Check for Updates”

Note: In order to install full version of Jheadstart having forms2adf generator tool, one must be connected to oracle intranet while performing following steps.
Oracle JHeadstart is an Oracle JDeveloper extension (or "plug-in") that you install using JDeveloper's "Check for Updates" functionality.

Run the "Check for Updates" wizard
With JDeveloper 11.1.2 running, choose Help | Check for Updates... from the main menu. Click (Next>)on the Welcome page of the Check for Updates dialog.

Select the Source for Extensions
Ensure that you have selected the Open Source and Partners Extensions update center, then click (Next >).



Select the Oracle JHeadstart Version Extension to Install
Enter jh in the search field, and choose the Oracle JHeadstart .
Jdev will ask to restart. Click ok and jdev will restart with message that Jheadstart is successfully installed.

 Forms2ADF Generator/Migration Process.


First we will create a normal Fusion Web Application as shown in below screenshot.

















Now we have a normal fusion web application. Next step is to run Forms2ADF generator and convert Oracle 6i /10g Forms to ADF . Follow the below steps.Click new and select forms2adf convertor like below.


















Click next and click browse on next screen for selecting .fmb or .xml files to convert into ADF/Jdeveloper. you can convert your oracle forms into XML through 10g developer.




















After selecting files, screen will look like that.

  
















Leave the default setting in next page as below and click next.

















Now we need to create database connection of the schema being accessed by oracle forms.

 
 

















Now database Connection is created . Click OK.
  

















We now have a connection to the schema used by oracle forms. Click OK and Next .



















On the next page leave the package names as it is and click next.



















 On next screen, provide the view controller project name and do next.
  



















Click finish on the summary screen.
  

















Now let’s see the output of Forms2ADF Generator.





















We can see the ADF generated in Model Project. So now we are done with ADF. Now let’s generate the View Layer with the power of Jheadstart. Let’s make view project Jheadstart enabled. Right click on view project and click “Enable Jheadstart on this project”.





















Next Screen will be come.
 














So now Jheadstart is enabled on the project.Now follow the below step to synchronize the service in ADF to view layer.
 
  





















Now click the button shown in screenshot below and press OK after it.


  https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF5l4k6vCOkH0pEYC1dtAbaANIwIJaz9q9UdBZpFC8iDoBVhQLr80Nh4lZ-3X5lxVUdxP3NADoNy-BsFO294mE1rtpRIidEdsdX9eJ2kzCgCM5RaBS4eIGiRMcaVAvNfcVx4fjS-a7QQg/s1600/ScreenHunter_51+May.+24+10.52.jpg



















Now we will generate the view layer. Right click on view project and click generate as follows.
This will generate all the task flows, JSFF, templates etc required by view layer.


  



















Now just save the view controller project and run it on local Oracle Weblogic Server.






















Following is the output of the Oracle Forms which are converted into ADF Screens.


  












Another way to download and install Oracle JHeadstart is as follows:

  • Download the zipfile through this link.
  • Start Oracle JDeveloper
  • Go the menu 'Help'and choose the 'Check for Updates' option (green arrow)
  • This will start up a wizard. In the first step choose 'Install from local file'
  • Use the browse button to find the zipfile you have just downloaded: jhs11.1.2.1.28-install.zip, click Next
  • Check the version that you will see in the next screen
  • The download of the JHeadstart evaluation copy will start
  • It will show a summary, click Finish
  • JDeveloper will ask to do a restart to finish the installation, click Yes.
  • JDeveloper will restart and you are ready to go with the Oracle JHeadstart Evaluation Copy.
  • Happy JHeadstarting!



Oracle JHeadstart is a popular tool used by developers to rapidly develop and deploy web applications. One of the most useful features of this tool is its ability to generate and migrate Oracle Forms applications to ADF (Application Development Framework). In this tutorial, we will walk through the process of using Forms2ADF to migrate an Oracle Forms application to ADF.

Before we begin, it is important to note that Forms2ADF is a tool that is included in JHeadstart. To use it, you must have JHeadstart installed on your machine. Additionally, this tutorial assumes that you have some basic knowledge of Oracle Forms and ADF.

Step 1: Preparing your Oracle Forms application

Before we can begin the migration process, we need to prepare our Oracle Forms application. This involves cleaning up the code and ensuring that it is compatible with ADF. The following steps will help you prepare your Oracle Forms application:

  1. Remove any obsolete code or unused objects from your Forms application.

  2. Make sure that all objects have unique names.

  3. Ensure that all your Forms objects have the correct visual attributes.

  4. Remove any custom code that is not compatible with ADF.

  5. Make sure that all objects are aligned and anchored properly.

  6. Ensure that all the business logic is in separate PL/SQL packages.

  7. Make sure that all the data access is done through views or procedures.

Step 2: Running Forms2ADF

Once you have prepared your Oracle Forms application, you can begin the migration process by running Forms2ADF. Follow these steps:

  1. Launch JHeadstart and select the "Forms2ADF Migration" option.

  2. Choose the Forms application that you want to migrate.

  3. Choose the destination directory where you want to generate the ADF application.

  4. Select the options that you want to use for the migration process.

  5. Click the "Generate" button to start the migration process.

  6. Wait for the migration process to complete. This may take some time depending on the size and complexity of your Forms application.

  7. Once the migration process is complete, you should have a fully functional ADF application.

Step 3: Testing your ADF application

Now that you have generated your ADF application, it is important to test it thoroughly to ensure that it is working as expected. Follow these steps to test your ADF application:

  1. Launch JDeveloper and open the ADF application that you just generated.

  2. Test all the functionality of the application to ensure that it is working as expected.

  3. Fix any issues that you find during the testing process.

  4. Test the ADF application again to ensure that all issues have been resolved.

  5. Once you are satisfied that the ADF application is working as expected, you can deploy it to your production environment.

Conclusion

Oracle JHeadstart and Forms2ADF are powerful tools that can help you rapidly develop and deploy web applications. By following the steps outlined in this tutorial, you can easily migrate your Oracle Forms application to ADF. Remember to test your ADF application thoroughly to ensure that it is working as expected. With a little bit of effort, you can quickly and easily migrate your Oracle Forms application to ADF, saving yourself time and effort in the long run.


Post a Comment

0 Comments