Friday, May 11, 2012

Installing and Deploying Demo Application

  1. Extract Foundation Pack Demo under <AIA_HOME>.
  2. If not already done so, set environment variables:
    • For Linux (bash shell)
      source <AIA_HOME>/aia_instances/<aia_instance>/bin/aiaenv.sh</aia_instance>
    • For Windows
      Navigate to aiaenv.bat located in <AIA_HOME>\aia_instances\<aia_instance>\bin
      Run aiaenv.bat
  3. You may have to assign higher memory values in your JVM parameter settings for demo to deploy if you have not set the maximum possible value already. Use the following three steps as guidance to configure JVM parameters:

    1. Navigate to <Middleware home>\user_projects\domains\<domain_name>\bin
    2. Update the following parameter in the setSOADomainEnv.sh (for Linux) and setSOADomainEnv.cmd (for Windows) file:
      • USER_MEM_ARGS="-Xms2048m -Xmx2048m -XX:PermSize=256m -
        XX:MaxPermSize=512m -XX:AppendRatio=3 -XX:NewSize=1228m -XX:MaxNewSize=1228m
        -XX:SurvivorRatio=10"
      • Note: These are recommended values while using Sun JVM. Actual values that you set depend on your system configurations. When running on dedicated hosts, you can set the JVM heap size as high as possible. Higher value results in better performance. However this number is constrained by the operating system's addressable memory space.
    3. Restart SOA server
  4. Run the deployment script:

    At the command line prompt, run the following command for your platform:
    • For Linux:
      cd $AIA_HOME/samples/AIADemo/config
      ant -f deployDemo.xml
       
    • For Windows:
      cd %AIA_HOME%\samples\AIADemo\config
      ant –f deployDemo.xml  
  5. Perform post deployment steps:

    Steps 4a and 4b are relevant only if you are going to run the B2B flows within the demo.

    1. Create writeable directories:
      • Navigate to <Middleware Home> \user_projects\domains\soa_domain\
      • Create a folder called AIA_B2B
      • Navigate to AIA_B2B and create a folder called channels.
      • Navigate to channels and create a folder called GlobalChips and a folder called Acme
      • Under each of these folders create two folders: in and out. (Both directories must be writeable.)
    1. Enable Listening Channels
      • Open B2B Server console at http://<server>:<port>/b2b and login
      • Navigate to Administration, Listening Channel and for each listening channel listed on the page.
      • Click Listening Channel row.
      • Click Channel Attributes sub-tab
      • Select Enable Channel.
      • Click Save.
    1. Set JTA Timeout:
      • Open WLS console and login.
      • Navigate to Services - JTA
      • Increase Timeout Seconds to 120.
      • Click Save.
  6. Verify Demo Deployment.

    1. Check the installation log file, <AIA_HOME>\aia_instances\<INSTANCE>\logs\AIADemoInstall.log
    2. Access the following URL: http:<server-name>:<port>/ StoreFrontModule/faces/home
    3. Select some items and add them to the cart. Total value should be less than $2000
    4. Select the Checkout link
    5. Log in with username: ngreenbe password: welcome1
    6. Click Submit Order
    7. Open Enterprise Manager SOA console and verify that multiple SOA composites were launched and that they all ran successfully.
    8. Back in the StoreFront application, click Exit and Continue Shopping
    9. Click Registration
    10. On the registration screen, provide the mandatory information and also first name and last name.(jsmith, Jill, Smith, jsmith@example.com, (415)111-2222, Female, Single, Electronics and Games)
    11. Click Next (4 times) and click Register as a Customer
    12. Verify in the Enterprise manager SOA console that 5 additional SOA composites were instantiated and executed successfully.

    Upgrading the Foundation Pack Demo
    If Foundation Pack Demo 11g Release 1 (11.1.1.2.0/11.1.1.4.0) is installed, perform the following task to upgrade to Foundation Pack Demo 11g Release 1 (11.1.1.5.0):
  1. Source aiaenv.sh from <AIA_HOME>/aia_instances/<aia_instance>/bin.  
  2. Browse to the <AIA_HOME>/Infrastructure/Install/AID folder.  
  3. Execute the following script:
    ant -f AIAInstallDriver.xml -
    DDeploymentPlan=$AIA_HOME/AIAFPUpdates/Update_AIAFP11115/config/Update_DemoInstall
    DP.xml -DPropertiesFile=$AIA_INSTANCE/config/AIAInstallProperties.xml

########

0 comments: