Sample application setup

 < Day Day Up > 



To install the ABC Electronics sample application in the IBM WebSphere Studio Application Developer V5.1 for Windows workspace:

  1. Download the ABC Electronics sample. See Appendix B, "Additional material" on page 335 for details.

  2. Extract the ABC Electronics sample to the required location, for example C:\ on Windows

  3. Stop WebSphere Application Server if it is running locally.

  4. Start Application Developer using the -data option to specify the ABC Electronics workspace folder. For example, on Windows:

        wsappdev -data C:\workspace 

  5. Import the ABC Electronics projects into your WebSphere Studio workspace:

    1. Select File Import from the Studio main menu.

    2. In the Import window, select Existing Project into Workspace as the import source and click Next.

    3. In the next window, click Browse, then navigate to the Build project folder. For example, on Windows:

          C:\workspace\Build 

      Click OK , then click Finish to import the project.

    4. Repeat steps a to c for each of the remaining ABC Electronics projects:

      • ITSOSourceAppWeb

      • ITSOSourceApp

      • ITSOTargetAppEJB

      • ITSOTargetAppWeb

      • ITSOTargetApp

  6. Set up the service endpoint DNS names.

    Our development/test environment consisted of two machines, one machine running the ITSOSourceApp and ITSOTargetApp in the WebSphere Studio test environment, and a second machine running the Web Services Gateway on WebSphere Application Server.

    You can use the sample application without modifying the WSDL endpoint addresses if you add the entries shown in Example A-1 to your system hosts file on both machines (<WINDIR>\system32\drivers\etc\hosts on Windows). Just substitute 10.10.10.10 with the IP address of your WebSphere Studio machine, and 10.10.10.11 with the IP address of your Web Services Gateway machine.

    Example A-1: Sample application hosts file entries

    start example
     ... 10.10.10.11 wsgw1.itso.ral.ibm.com wsgw1 10.10.10.11 wsgw2.itso.ral.ibm.com wsgw2 10.10.10.10 target.itso.ral.ibm.com target ... 
    end example

  7. Deploy the following services on your Web Services Gateway(s):

    • InventoryDoc, as described in Chapter 10, "Using the Web Services Gateway" on page 215.

    • InventoryCics, as described in Chapter 11, "Using the Web Services Gateway with J2EE Connectors" on page 237.

  8. Generate the Web service classes and deployment descriptors.

    You can do this as described in the scenarios chapters, Chapter 8, "Using RPC style Web services" on page 147 through to Chapter 11, "Using the Web Services Gateway with J2EE Connectors" on page 237.

    Alternatively, you can use the wsdeployall.cmd command script in the Build project as follows:

    1. Select, then right-click the Build/wsdeployall.cmd script, and select Open With Text Editor from the pop-up menu.

    2. Set the WAS_HOME and STUDIO_WSPACE variables for your environment.

    3. Save your changes and close the editor.

    4. Right-click the wsdeployall.cmd file and select Open With System Editor to launch the script.

    Tip 

    To skip deployment of any of the Web service servers or clients, comment out the call statement(s) in wsdeployall.cmd for the service. Use the WSDL file name immediately before each call statement to work out which service is which. (The Inventory and InventoryDoc services have two call statements; one to emit the Web service server and one for the client.)

  9. Generate the EJB deployment code:

    1. Select, then right-click the ITSOTargetAppEJB project, and select Generate Deploy and RMIC Code from the pop-up menu.

    2. In the Generate Deploy and RMIC Code window, click Select all to select all the EJBs, then click Finish.

  10. Start the applications:

    1. Right-click ITSOTargetApp and select Run on Server....

    2. In the Server selection window, set the Server type to WebSphere version 5.0 Test Environment and click Finish.

    3. Right-click ITSOSourceAppWeb and select Run on Server....

    The ABC Electronics welcome page should appear, as shown in Figure 8-2 on page 150.

In Chapter 11, "Using the Web Services Gateway with J2EE Connectors" on page 237, we implement the ITSOConnectorApp for deployment on the Web Services Gateway. To install this application in the IBM WebSphere Studio Application Developer Integration Edition V5.0 for Windows workspace:

  1. Start WebSphere Studio Integration Edition using the -data option to specify the workspace folder. For example, on Windows:

        wsappdevie -data C:\workspaceIE 

  2. If needed, import the CICS ECI resource adapter, as described in "Import the resource adapter into the workspace" on page 242.

  3. Import the ITSOConnectorApp.ear file into your WebSphere Studio Integration Edition workspace:

    1. Select File Import from the Studio main menu.

    2. In the Import window, select EAR file as the import source and click Next.

    3. In the next window, click Browse, then navigate to the ITSOConnectorApp.ear file. For example, on Windows:

          C:\workspace\Build\ITSOConnectorApp.ear 

      Click OK, then click Finish to import the EAR file.



 < Day Day Up > 



Patterns Direct Connections for Intra- And Inter-Enterprise. Direct Connections for Intra- And Inter-Enterprise (IBM Redbook) (Paperback)
Patterns Direct Connections for Intra- And Inter-Enterprise. Direct Connections for Intra- And Inter-Enterprise (IBM Redbook) (Paperback)
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 139

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net