Sample: Container-managed ActivitySessions service

 

+

Search Tips   |   Advanced Search

 

To run the container-managed ActivitySessions Sample...

  1. From a command prompt.

    On Windows platforms:

    cd <profile_root>\bin
    setupCmdLine

    On Linux, UNIX and z/OS platforms:

    cd <profile_root>/bin
    . ./setupCmdLine.sh

    On iSeries platforms:

    cd <profile_root>/bin
    . ./setupCmdLine

  2. cd profile_root/installedApps/<cell_name>

  3. Invoke the Sample:

    Windows platforms:

     install_root\bin\launchClient activitysession.ear
                                  -CCBootstrapPort=<port_number> 
                                  -CCjar=ASContainerSampleClient.jar 
                                  -CCexitVM=true
    
    

    Linux, UNIX and z/OS platforms:

     install_root/bin/launchClient.sh activitysession.ear
                                     -CCBootstrapPort=<port_number> 
                                     -CCjar=ASContainerSampleClient.jar 
                                     -CCexitVM=true
    
    

    iSeries platform:

     install_root/bin/launchClient activitysession.ear
                                  -CCBootstrapPort=<port_number> 
                                  -CCjar=ASContainerSampleClient.jar 
                                  -CCexitVM=true
    
    

    ...where: <port_number> is the port on which the appserver is listening:

    Configuration Default port number
    Base 2809
    ND 9810

  4. If WebSphere global security is enabled, enter the user ID and password that are used for configuring WebSphere global security in the Client container menu.

  5. The client reports the progress. The output is similar to the following example:

    Starting ActivitySessions Sample
    Accessing UserActivitySession
    Retrieving an ASContainerManagedEJBHome from JNDI
    Finding or Creating EJB instances
    Starting First ActivitySession
    Updating EJBs
    Ending ActivitySession with Checkpoint
    Starting Second ActivitySession
    Updating EJBs
    Ending ActivitySession with Reset
    Checking values
    Sample has completed successfully