Tutorial: Upgrading 8.1 Application Source to 9.2

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Tutorial: Upgrading the 8.1 Application Source

This chapter contains information on how to upgrade the application source using the Import Wizard. It also gives an insight into the upgrade process. It contains the following sections:

This tutorial does not include validation of all the aspects of the sample application. It helps you upgrade the 8.1 application source and view it in the WebLogic Integration 9.2 environment.

 


Application Overview

This application used in this tutorial creates a business process that meets the following requirements:

 


Importing the Application Source

This section provides detailed step-by-step instructions on how to upgrade your WebLogic Integration 8.1 Service Pack 4 or 5 application source for use in the Workshop for WebLogic Platform 9.2 environment.

  1. Start Workshop for WebLogic Platform by selecting Start Arrow symbol All Programs Arrow symbol BEA Products Arrow symbolWorkshop for WebLogic Platform 9.2 from the Start menu. This will display the Workspace Launcher dialog box as shown in Figure 2-1.
  2. Figure 2-1 Setting the Workspace for the Upgraded Application


    Setting the Workspace for the Upgraded Application

  3. Specify the desired location for the upgraded application in the Workspace field as shown in Figure 2-1. For this tutorial use the upgrade workspace, under the WebLogic Platform installation directory, as shown below:
  4. $BEA_HOME\user_projects\w4WP_workspaces\upgrade 
Note: The $BEA_HOME used throughout this tutorial is F:\bea\platform92_for_Beta\ where WebLogic Platform 9.2 is installed.
  1. Click OK to proceed, and the BEA Workshop for WebLogic Platform IDE is launched, as shown in Figure 2-2.
  2. Figure 2-2 Workshop for WebLogic Platform (IDE)


    Workshop for WebLogic Platform (IDE)

  3. Start the import procedure by selecting the File Arrow symbolImport... menu option. This will display the Import Source dialog box as shown in Figure 2-3.
  4. Figure 2-3 Selecting the Application Source to be Imported


    Selecting the Application Source to be Imported

  5. Select the Workshop 8.1 Application option as the application source type, as shown in Figure 2-3, and click Next to proceed. The Application Import dialog box appears as shown in Figure 2-4.
  6. Figure 2-4 Selecting the Application to be Imported


    Selecting the Application to be Imported

  7. Click Browse to navigate through the directory structure and select the sampleApp.work file that you created in 8.1 SP5. For more information, see Creating the Source 8.1 Application. As shown in Figure 2-4, the sampleApp.work file for this tutorial is located in:
  8. F:\bea\platform815\user_projects\applications\sampleApp 

    After selecting the sample application from the 8.1 install, a list of projects in that application are displayed in the dialog box. You have the option of choosing the projects to import and upgrade by clicking on the check boxes adjacent to them. However, it is advisable to include all the projects, as most of them have inter-dependencies.

  9. Click Next to proceed and the Upgrade preference selection dialog box is displayed, as shown in Figure 2-5.
  10. Figure 2-5 Setting the Upgrade Preferences


    Setting the Upgrade Preferences

    You can configure your preference by selecting the various options displayed in the dialog box. These options are available under specific categories, as listed below, depending on their function.

    • General - You can set the error handling options and the kind of content you would like to record. Use the default value for both the properties as described in Table 2-1.
    • Table 2-1 Setting General Preferences
      Property
      Description
      Error Handling
      Determines how the errors are handled and the subsequent action you would like to implement. Error messages are always recorded in a log file, but your selection here determines how they are delivered to you. There are three options for this field, namely:
      • Log errors and continue upgrade (default option)
      • Log errors but abort upgrade
      • Display dialog on errors
      Message Verbosity
      Determines the type of messages that will be captured during the upgrade process. There are three types of messages that are captured: information, warning, and error. These three message types are reflected in the three options for this field, namely:
      • Include informational comments (default option) - All three message types
      • Include warning comments - Only warning and error type messages
      • Include error comments - Only error messages

    • NetUI Project Upgrader options - Selecting the Use WebLogic J2EE Shared Libraries option enables you to use the WebLogic J2EE shared libraries, without having to duplicate runtime .jar files across projects. You can ignore this option as it usually does not impact the WebLogic Integration applications. By default, this option is selected for upgrade.
    • Properties file upgrader options - The Delete copied resource bundle files from the web content folder option removes any unnecessary .properties files. If none of the JSP pages in the web content folder require .properties files, they can be deleted. You can ignore this option as it usually does not impact the WebLogic Integration applications. By default, this option is not selected for upgrade.
    • JPD Document Upgrader options - Select the Upgrade XQ2002 to XQ2004 option as it converts XQuery statements from XQuery 2002 draft version to XQuery 2004 draft version. This enables the JPD node editor to parse through the inline XQuery statements and convert them to 2004 version. By default, this option is not selected for upgrade.
      • Ensure you select the Upgrade XQ2002 to XQ2004 option.
    • JSP File Migrator options - When selected, the Replace BEA NetUI tags with Apache Beehive tags option will upgrade the WebLogic Integration 8.1 supported NetUI tags with Apache Beehive compatible NetUI tags. You can ignore this option as it usually does not impact the WebLogic Integration applications. By default, this option is not selected for upgrade.
    • Note: You can convert projects or selective JSPs to use Apache Beehive compatible NetUI tags even after the upgrade exercise. However, all new projects created in 9.2 use the Apache Beehive compatible NetUI tags.
  11. Click Next to proceed with the upgrade, and the Progress Information dialog box is displayed, as shown in Figure 2-6. At this step, the application being upgraded is assessed and a detailed list of upgrade tasks that need to be performed (and not performed) is generated.
  12. Figure 2-6 Tracking Upgrade Progress


    Tracking Upgrade Progress

    After completing the upgrade process, the Upgrade Preview dialog box is displayed, as shown in Figure 2-7. The preview dialog box provides a summary of changes that will be implemented during the upgrade task.

    Figure 2-7 Preview of the Upgrade Actions


    Preview of the Upgrade Actions

  13. Click Finish when you are satisfied with the items listed for upgrade, and those that do not require to be upgraded. The Upgrade Preview dialog box is refreshed and displays the upgrade progress status at the bottom of the dialog box, as shown in Figure 2-8.
  14. Figure 2-8 Upgrade Progress Indicator


    Upgrade Progress Indicator

After the upgrade is complete, Workshop builds the workspace for the application in the IDE. A log of the import process is displayed in the Problems pane at the bottom of the dialog box; while a log of the upgrade process is displayed in the Upgrade pane, as shown in Figure 2-9. You can customize the type of information that is displayed by making the appropriate changes in the Upgrade Preferences dialog box. For more information on the type of error messages to be displayed, see Figure 2-5.

Figure 2-9 Import and Upgrade Progress Log in the BEA Workshop for WebLogic Platform IDE

Import and Upgrade Progress Log in the BEA Workshop for WebLogic Platform IDE

Note: For the purpose of this tutorial, you can ignore the warning and information type error messages displayed in the Problems pane.

With this, you have successfully completed the process of importing the application into the 9.2 workspace. The following sections will help you validate the application in the 9.2 environment. The tasks include deploying and running the application in a WebLogic Integration domain.

 


Validating the Upgraded Application

This section describes the steps involved in validating the upgraded application in the 9.2 environment. The task involves deploying the application on the server, publishing it, and subsequently running the application with some test values.

Deploying and Publishing the Application

Perform the following tasks to deploy the application after a successful upgrade.

  1. In the Package Explorer pane, navigate through the directory structure to view the sampleAppWeb Arrow symbolsrc Arrow symbolrequestquote Arrow symbolRequestQuote.java file, as shown in Figure 2-10.
  2. Figure 2-10 Selecting the RequestQuote.java File


    Selecting the RequestQuote.java File

  3. Right-click the RequestQuote.java file and select Run As Arrow symbol1 Run On Server menu option. The Run on Server dialog box appears, as shown in Figure 2-11.
  4. Figure 2-11 Defining a New Server to Deploy the Application


    Defining a New Server to Deploy the Application

  5. Select the Manually define a new server check box and fill up the form as displayed in Figure 2-11.
  6. Click Next to proceed. The Run On Server dialog box is refreshed with the Define a WebLogic Server page, as shown in Figure 2-12.
  7. Figure 2-12 Defining a WebLogic Server


    Defining a WebLogic Server

    In following section, you will create a new WebLogic Integration domain in the WebLogic Server.

Creating a WebLogic Integration Domain Using the Configuration Wizard

Perform the following steps to setup the WebLogic Integration domain in order to deploy the sampleApp application.

  1. Select the Click here to launch Configuration Wizard to create a new domain option in Run On Server dialog box, to start the BEA WebLogic Configuration Wizard. As shown in Figure 2-13.
  2. Figure 2-13 Creating a New WebLogic Domain


    Creating a New WebLogic Domain

  3. Select the Create a new WebLogic domain option and click Next. This will display the Select Domain Source page.
  4. Select the Workshop for WebLogic Platform and the WebLogic Integration options and click Next. This will display the Configure Administrator Username and Password page.
  5. Enter weblogic in the User name, User password, and the Confirm user password fields, and click Next. This will display the Configure Server Start Mode and JDK page.
  6. In the WebLogic Domain Startup Mode pane, select Development Mode. In the JDK Selection pane, select Sun SDK 1.5.0_04 @ F:\bea\platform92_for_Beta\jdk150_04 and click Next to proceed. This will display the Customize Environment and Service Settings page.
  7. Select Yes and click Next to proceed. This will display the Configure the Administrator Server page. Click Next to proceed without making any changes.
  8. Similarly, do not make any changes in subsequent Configure Managed Servers, Configure Machines, and Configure the JDBC Data Source pages. Just click Next and skip to the Run Database Scripts page, as shown in Figure 2-14.
  9. Figure 2-14 Running Database Scripts


    Running Database Scripts

  10. From the list of Available JDBC Data Sources, select the p13nDataSource option, as shown in Figure 2-14 and click Run Scripts. On successful execution, the Results pane will display Database Load Successful!.
  11. Again, from the list of Available JDBC Data Sources, scroll down and select cgDataSource-nonXA and click Run Scripts again. On successful execution, the Results pane will display Database Load Successful!.
  12. Click Next to proceed. This will display the Configure JMS File Stores page, do not make any changes and click Next to proceed. This will display the Review WebLogic Domain page, Figure 2-15, which summarizes the contents of the domain, and reflects the options you have selected.
  13. Figure 2-15 Review the Domain Configuration Settings


    Review the Domain Configuration Settings

  14. Click Next to proceed without making any changes. This will display the Create WebLogic Domain page.
  15. Provide a name in the Domain Name field, for example sample_wli_domain, and click Create. This will start the domain creation process and on successful creation, the Create Domain dialog box will appears as shown in Figure 2-16.
  16. Figure 2-16 Successful Creation of a Domain


    Successful Creation of a Domain

  17. Click Done to conclude the Domain creation process. You now need to publish the application on the server with the domain you just created.
  18. After creating the Domain using the Configuration Wizard, return to the Run On Server dialog box as shown in Figure 2-12.
  19. Click Browse and navigate to the folder where the new WebLogic Integration Domain sample_wli_domain was created and select it. As shown in Figure 2-16, the new Domain location for this tutorial is:
  20. F:\bea\platform92_for_Beta\user_projects\domains\sample_wli_domain 
  21. Click Next on the Run On Server dialog box to display the Add and Remove Projects page. Ensure the sampleApp project is listed in the Configured projects column.
  22. Click Finish to publish the Application. You can view the progress of the build and publish tasks in the Progress tab, as shown in Figure 2-17. This process may take some time if you are starting the server for the first time.
  23. Figure 2-17 Deploy and Publish Status


    Deploy and Publish Status

    After successfully deploying and publishing the Application, a browser pane is opened in the IDE, displaying the Overview tab of RequestQuote.jpd Process.

  24. Click the Test Form tab in the browser pane, as shown in Figure 2-18.
  25. Figure 2-18 Published Application Ready for Validation


    Published Application Ready for Validation

The Application is now ready for the final validation process, running it. Details are provided in the following section.

Running the Application

This section describes the tasks that need to be performed to run the Application. This is the final step in validating the upgraded Application, and the 8.x to 9.2 upgrade procedure. The primary task of this section is to provide a set of test values to execute the Application, and to verify the results.

  1. Locate the QuoteRequest.xml file that contains the test values required to validate the upgraded Application. The file is under the WebContent folder in the Package Explorer pane, as shown in Figure 2-19.
  2. Figure 2-19 Locating the XML Document for Validation


    Locating the XML Document for Validation

  3. Right click the QuoteRequest.xml file and select Open With Arrow symbol Text Editor to display its contents in the IDE browser, as shown in Figure 2-20.
  4. Figure 2-20 Test Values for Validation


    Test Values for Validation

  5. Copy all the contents of the source file and close it.
  6. Paste the contents in the xml requestXML field of the Test Form tab, as shown in Figure 2-21.
  7. Another way to provide the test values is to click Browse in the Test Form tab of the browser pane, as shown in Figure 2-18. Subsequently, select the F:\bea\platform92_for_Beta\user_projects\w4WP_workspaces\upgrade\sampleAppWeb\WebContent\requestquote\testxml\QuoteRequest.xml file and click Open.

    Figure 2-21 Providing the Test Values for Validation


    Providing the Test Values for Validation

  8. Click quoteRequest to start the process. On successful completion of the process, the Test Form tab is refreshed as shown in Figure 2-22.
  9. Figure 2-22 Successful Execution


    Successful Execution

You have now successfully imported, published, and validated an 8.1 Application in the 9.2 workspace.

 


Summarize the WebLogic Integration Upgrade Process

This section briefly summarizes the post-upgrade WebLogic Integration source artifacts.


  Back to Top       Previous  Next