BEA Logo BEA WebLogic Collaborate Release 1.0.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WebLogic Collaborate Doc Home   |   Getting Started   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Setting Up the WebLogic Process Integrator Environment

 

The following sections explain how to set up the WebLogic Process Integrator environment, so that you can run WebLogic Process Integrator Studio:

Before beginning the procedures in this chapter, run the WebLogic Collaborate installation verification application, verifier, described in the BEA WebLogic Collaborate Installation Guide.

 


Configuring WebLogic Collaborate for WebLogic Process Integrator

To configure your WebLogic Collaborate environment so that it operates with WebLogic Process Integrator, you need to verify that the WebLogic Process Integrator Studio and WebLogic Server run-time requirements are installed and configured correctly, as described in this section.

  1. Open a command window, and change to the following directory:

    Windows

    %WLC_HOME%\enabler

    UNIX

    $WLC_HOME/enabler

  2. Use the WebLogic Server Administration Console to configure the wlpiPool to the database you are using with your application. For complete information on how to configure JDBCConnection pools, see the BEA WebLogic Server Administration Guide.

    The following listing from the config.xml file shows that during installation the system was configured for the Cloudscape database.

    Note: The code snippets in this book illustrate the settings you need to set using the WebLogic Server Administration Console. You should use these settings as a reference. They do not imply that you should edit config.xml manually. Doing so may cause your WebLogic Server installation to fail, and your changes may be overwritten.

    Warning: Before running WebLogic Collaborate the first time, it is a good idea to make a backup copy of config.xml. Comments in config.xml may be overwritten or removed whenever WebLogic Server runs. Use the backup copy of config.xml as a reference.

    Listing 2-1 WebLogic Server configured to use Cloudscape

    <<!-- Cloudscape settings -->
    <<JDBCConnectionPool
    CapacityIncrement="1"
    DriverName="COM.cloudscape.core.JDBCDriver"
    InitialCapacity="1"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="wlpiPool"
    Properties="user=none;password=none"
    RefreshMinutes="0"
    ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true"
    Targets="myserver"
    URL="jdbc:cloudscape:wlpidb"
    />


    <<!-- Oracle settings -->
    <<!--
    <<JDBCConnectionPool
    CapacityIncrement="1"
    DriverName="weblogic.jdbc.oci.Driver"
    InitialCapacity="1"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="wlpiPool"
    Properties="user=<<ORACLE_USER>;password=<<ORACLE_PASSWORD>;server=<<ORACLE_SERVICENAME>"
    RefreshMinutes="0"
    ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true"
    Targets="myserver"
    URL="jdbc:weblogic:oracle"
    />
    -->


    <<!-- SQL Server settings (MSSQL) -->
    <<!--
    <<JDBCConnectionPool
    CapacityIncrement="1"
    DriverName="weblogic.jdbc.mssqlserver4.Driver"
    InitialCapacity="1"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="wlpiPool"
    Properties="user=<<MSSQL_USER>;password=<<MSSQL_PASSWORD>"
    RefreshMinutes="0"
    ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true"
    Targets="myserver"
    URL="jdbc:weblogic:mssqlserver4:WLCDB@<<MSSQL_HOSTNAME>"
    />

  3. Deploy the enterprise java beans files wlpi-ejb.jar and wlpi-mdb-ejb.jar. For complete information on deploy EJBs, see the BEA WebLogic Server Administration Guide.

    The following listing is an example of how the config.xml appears after deploying the EJBs

    Listing 2-2 Deploying enterprise javabeans

     <<Application
    Name="WLPI Application"
    Path="D:/bea/wlcollaborate1.0.1/lib"
    >
    <<EJBComponent
    Name="wlpi-ejb.jar"
    Targets="myserver"
    URI="wlpi-ejb.jar"
    />
    <<EJBComponent
    Name="wlpi-mdb-ejb.jar"
    Targets="myserver"
    URI="wlpi-mdb-ejb.jar"
    />
    <</Application>

  4. Open the config.xml file and uncomment the section indicated in bold in the following listing:

    Listing 2-3 Uncomment sections of config.xml

     <<!-- for wlpiverifier
    example
    <<StartupClass
    Arguments="ConfigFile=xml/enablers.xml,SessionName=caller-session,User=bea,Password=12345678,OrgName=BEA"
    ClassName="com.bea.b2b.wlpi.Start"
    Name="WlpiVerifierCaller"
    Targets="myserver"
    />

        <<StartupClass
    Arguments="ConfigFile=xml/enablers.xml,SessionName=callee-session,User=bea,Password=12345678,OrgName=BEA"
    ClassName="com.bea.b2b.wlpi.Start"
    Name="WlpiVerifierCallee"
    Targets="myserver"
    />
    -->

  5. Change to the directory where the WebLogic Process Integrator scripts are installed:

    Windows

    %WLC_HOME%\wlpi

    UNIX

    $WLC_HOME/wlpi

  6. Create the WebLogic Process Integrator repository database tables by executing one of the following commands:

  7. Open the web.xml file in

    $WLC_HOME/hub/config/mydomain/applications/DefaultWebApp_myserver/WEB-INF

    Search for the following string.

    <<!-- uncomment the following for
    colocated WLPI verifier example -->

    Uncomment the section following that comment to register the WlpiVerifier Servlet.

  8. Change to the directory where you installed WebLogic Collaborate:

    Windows

    %WLC_HOME%

    UNIX

    $WLC_HOME

  9. Ensure that the setenv.sh script defines the following environment variables.

    Variable

    Definition

    JAVA_HOME

    The directory path where you installed the JDK software. For example:

    JAVA_HOME=/usr/local/JDK1.3.0

    WL_HOME

    The directory path where you installed the WebLogic Server software. For example:

    WL_HOME=/usr/local/weblogic

    WLC_HOME

    The directory path where you installed the WebLogic Collaborate software. For example:

    WLC_HOME=/usr/local/WLCollaborate

  10. Execute the setenv script to set the WebLogic Collaborate environment variables:

    Windows

    prompt> setEnv.cmd

    UNIX

    prompt> . ./setenv.sh

  11. Change directory to the enabler subdirectory and start WebLogic Server:

    Windows

    prompt> cd enabler\config\mydomain

    prompt> startweblogic.cmd

    UNIX

    prompt> cd enabler/config/mydomain

    prompt> ./startweblogic.sh

Note: WebLogic Server must be running when you start WebLogic Process Integrator Studio (refer to Starting WebLogic Process Integrator Studio).

 


Troubleshooting Your WebLogic Process Integrator Configuration

If you observe binding errors on the listening port, make sure another instance of WebLogic Server is not running using the same port (that is, another command window with the startwebLogic script running).

If WebLogic Server is unable to create a connection pool, as indicated by exceptions displayed in the command window, check that the connection pool property, weblogic.jdbc.connectionPool.wlpiPool, is specified correctly.

If you continue to have a problem, make sure that the database server is running and accessible, and that you have the appropriate permissions.

 


Starting WebLogic Process Integrator Studio

WebLogic Process Integrator Studio is the business process editing component of the WebLogic Process Integrator software, and can be used to define the conversations and business processes in the WebLogic Collaborate environment.

Before starting the WebLogic Process Integrator Studio, an enabler instance must already be running. You can initiate the enabler instance and start WebLogic Process Integrator Studio from the shortcuts created during installation, or from a command line as described below.

To run WebLogic Process Integrator Studio using the menu shortcuts:

  1. Select WebLogic Process Integrator 1.2.1—>Database—>Create Database. This creates and loads the database.

  2. Select WebLogic Process Integrator 1.2.1—>Server. This starts up the enabler instance and WebLogic Process Integrator.

  3. Now you can run the WebLogic Process Integrator Studio and Worklist and log in using the following menu shortcuts:

    WebLogic Process Integrator 1.2.1—>Studio

    WebLogic Process Integrator 1.2.1—>Worklist

Before using the Studio, you may want to verify that the Studio is running correctly and connecting to WebLogic Server.

To verify that you can start WebLogic Process Integrator Studio and connect to WebLogic Server:

  1. Complete the procedure described in Configuring WebLogic Collaborate for WebLogic Process Integrator, and ensure that WebLogic Server is still running before you proceed to step 2.

  2. Open a new command window, change to the directory where WebLogic Collaborate is installed, and execute the script to set the WebLogic Collaborate environment variables:

    Windows

    prompt> cd %WLC_HOME%

    prompt> setEnv.cmd

    UNIX

    prompt> cd $WLC_HOME

    prompt> . ./setenv.sh

  3. Change to the directory where the WebLogic Process Integrator scripts are installed:

    Windows

    %WLC_HOME%\wlpi

    UNIX

    $WLC_HOME/wlpi

  4. Execute the following script, which starts WebLogic Process Integrator Studio and displays the WebLogic Process Integrator Studio login dialog box:

    Windows

    prompt> Studio.cmd

    UNIX

    prompt> . ./studio.sh

    The WebLogic Process Integrator Studio login dialog box is displayed.

  5. Enter the BEA user name (bea) and password (12345678) in the dialog box.

  6. In the Server text field, enter the following:

    t3://localhost:7501

    where localhost represents the name of your machine.

  7. Click OK.

If you are unable to log in: