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   |   C-Hub Administration   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Setting Up the C-Hub

 

The following sections describe how to set up a c-hub:

 


About the C-Hub Administration Console

Many configuration tasks require changes to the config.xml file. The number of configuration changes that you need to make depends on whether or not the c-hub and c-enablers are colocated. The following figure shows a c-hub and c-enablers that are colocated, which means that they run on the same WebLogic Server instance.

Figure 2-1 C-Hub and C-Enablers That Are Colocated

The following figure shows a c-hub and c-enablers that are not colocated, which means that they run on different WebLogic Servers.

Figure 2-2 C-Hub and C-Enablers That Are Not Colocated

If the c-hub and c-enablers are colocated, they use the same configuration. If the c-hub and c-enablers are not colocated, they use different configurations—one for each WebLogic Server instance.

The config.xml files are in the following locations:

When you run the Verification example to verify the WebLogic Collaborate installation as described in the BEA WebLogic Collaborate Installation Guide, the example software sets up the config.xml file for your environment. For example, you might need to use the Weblogic Server Administration Console to:

This Setting Up the C-Hub section describes how to configure the c-hub. For information about configuring the c-enablers, see Configuring C-Enablers in the BEA WebLogic Collaborate C-Enabler Administration Guide. For information about configuring the Web Logic Server, see the BEA WebLogic Server Administration Guide.

 


Configuring the C-Hub Startup Class and Starting the C-Hub

There are two ways to start the c-hub, from the command line using startup scripts and from the C-Hub Administration Console.

Using the Command Line

To start the C-Hub from the command line, you must first use the WebLogic Server Administration Console and configure the C-Hub start-up class (com.bea.b2b.hub.Startup) to use the values shown in the following table.

For more information on registering startup classes, see "Starting and Stopping WebLogic Servers" in the BEA WebLogic Server Administration Guide.

Using the C-Hub Administration Console

Start the c-hub using the C-Hub Administration Console. For complete information, see Starting the C-Hub in Getting Started with C-Hub Administration.

 


Configuring the Repository

The repository is a relational database that contains configuration information for c-hubs, c-spaces, trading partners, conversation definitions, document definitions, DTDs, XML documents, XML schemas, and message definitions. The c-hub uses a JDBC connection pool to access the repository.

For information about the supported database versions, see the BEA WebLogic Collaborate Release Notes.

To configure the repository, use the WebLogic Server Administration Console.

  1. Open the WebLogic Server Administration Console. To configure the JDBC connection pool, select JDBC, Connection Pools.

    Note: All the WebLogic Collaborate components, such as the JMS queue, the repository, persistent storage, and administration, must use the same database and same JDBC connection pool.

    When you ran the Verification example, as described in the BEA WebLogic Collaborate Installation Guide, the example software configured a JDBC connection pool for the database that you specified during the installation procedure. If you are using the same database, then you do not need to perform this step. However, to use a different database you need to reconfigure the JDBC connection pool.

    1. Set the JDBC connection pool parameters.

      The following table describes the database-dependent JDBC connection pool parameters.

      The following listing shows the settings for a JDBC connection pool for a Cloudscape database as they would appear in the config.xml file. You enter these settings in the WebLogic Server Administration Console. For more information about using the WebLogic Server Administration Console, see "Overview of WebLogic Server Management" in the BEA WebLogic Server Administration Guide.

      Listing 2-1 JDBC Connection Pool Configuration for Cloudscape

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

      The following listing is an example of the configuration settings for a JDBC connection pool for an Oracle database entered using the WebLogic Server Administration Console.

      Listing 2-2 JDBC Connection Pool Configuration for Oracle

       <!-- Oracle settings -->
      <JDBCConnectionPool
      CapacityIncrement="1"
      DriverName="oracle.jdbc.driver.OracleDriver"
      InitialCapacity="1"
      LoginDelaySeconds="1"
      MaxCapacity="10"
      Name="wlcPool"
      Properties="user=scott;password=tiger"
      RefreshMinutes="0"
      ShrinkPeriodMinutes="15"
      ShrinkingEnabled="true"
      Targets="myserver"
      URL="jdbc:oracle:thin:@fushigi.beasys.com:1521:fush816"
      />

      The following listing shows the configuration settings for a JDBC connection pool for a SQL Server database. These settings are entered in the WebLogic Server Administration Console.

      Listing 2-3 JDBC Connection Pool Configuration for SQL Server

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

    2. Set the access control list (ACL) for the JDBC connection pool. The ACL entries are in the fileRealm.properties file.

      For example:

      # ACL for JDBC Connection Pool
      acl.reset.weblogic.jdbc.connectionPool.wlcPool=everyone
      acl.reserve.weblogic.jdbc.connectionPool.wlcPool=everyone
      acl.shrink.weblogic.jdbc.connectionPool.wlcPool=everyone

    3. Specify the data source.

      Set the JDBC data source (WLCHub.DS) to the name of the JDBC connection pool. For example:

      <JDBCTxDataSource
      JNDIName="WLCHub.DS"
      Name="WLCHub.DS"
      PoolName="wlcPool"
      EnableTwoPhaseCommit="true"
      Targets="myserver"
      />

      For more information about configuring a JDBC connection pool, see "Managing JDBC Connectivity" in the BEA WebLogic Server Administration Guide and "JDBC Administration through the Administration Console" in the Managing Transactions section of the BEA WebLogic Server Administration Guide.

      Warning: After you modify the config.xml file, you must stop and restart WebLogic Collaborate to implement the changes.

  2. Stop and restart the WebLogic Server.

    Note: All the WebLogic Collaborate components, such as the JMS queue, the repository, persistent storage, and administration, must use the same database and same JDBC connection pool.

    When you ran the Verification example, as described in the BEA WebLogic Collaborate Installation Guide, the example software set up the database. If you are using the same database, then you do not need to perform this step. However, to use a different database, you need to set it up.

    1. Install the JDBC driver.

      The WebLogic Server installation includes the Oracle and Cloudscape JDBC drivers. Therefore, you do not need to install a JDBC driver if you are using either the Oracle or Cloudscape database. If you are using Microsoft SQL Server, download and install the WebLogic jDriver for SQL Server as described in Installing and Using WebLogic jDriver for MicroSoft SQL Server.

    2. Create the database.

      Warning: When you create the database, you delete any already-existing database.

      Run the createDB.cmd (Windows) or createDB.sh (UNIX) file, which is located in the bin subdirectory of your WebLogic Collaborate installation directory. Use the following command syntax to specify your database:

      createDB cloudscape|oracle|mssql

    3. Run the Bulk Loader utility to load data into the repository.

      Warning: When you use the Bulk Loader to load data into the repository, you delete any already-existing data.

      For information about the Bulk Loader, see Working with the Bulk Loader.

 


Configuring the Java Message Service Queue

Java Message Service (JMS) enables Java programs to exchange messages with other Java programs. WebLogic Collaborate uses the WebLogic Server implementation of the JMS queue. For more information about JMS, see "Managing JMS" in the BEA WebLogic Server Administration Guide. Even though the section describes how to create a database for JMS, you need only to create database tables.

Note: You do not need to perform most of the configuration tasks described in the "Configuring WebLogic JMS" section in the WebLogic Server documentation:

 


Configuring and Running the C-Hub Administration Console

To configure and run the C-Hub Administration Console:

  1. Use the WebLogic Server Administration Console to define the C-Hub Administration Console Web Application.

    The C-Hub Administration Console is a J2EE Web application. The file for the C-Hub Administration Console is hubadmin.war, which is located in the lib subdirectory of your WebLogic Collaborate installation directory. For more information, see "Deploying and Configuring Web Applications" in the BEA WebLogic Server Administration Guide.

    The following shows the content of a completed configuration for a sample Console Web Application.

    Listing 2-4 Code Sample for Console Web Application

            <Application
    Name="WLCHubAdmin"
    Path="<WLC_HOME>/lib">
    <WebAppComponent
    Name="WLCHubAdmin"
    ServletReloadCheckSecs="1"
    Targets="myserver"
    URI="hubadmin.war"
    WebServers="myserver"
    />
    </Application>

  2. The C-Hub Administration Console requires a login to ensure that only authorized users can configure and monitor c-hubs. Specify the list of authorized users and their associated permissions in the WLCAdmin access control list (ACL).

    The following example shows how to specify the WLCAdmin ACL:

    acl.hubconfig.WLCAdmin=admin
    acl.hubmonitor.WLCAdmin=user2,user3

    For more information about defining access control lists, see "Defining ACLs" in "Managing Security" in the BEA WebLogic Server Administration Guide.

  3. Set JDBC connection pool permissions.

    In addition to the WLCAdmin ACL permissions, users who need to configure the c-hub must be allowed to reserve connections from the JDBC pool for the repository. In the previous example, the user admin must have this type of permission. For information about JDBC connection pool permissions, see Configuring the Repository.

  4. Start the C-Hub Administration Console.

    Open a Web browser and go to the following URL:

    http://host:port/WLCHubAdmin

    In this URL, host:port specifies the location of the WebLogic Server that is hosting the c-hub.

    For information about using the C-Hub Administration Console, see Using the C-Hub Administration Console, which is Part II in this document.

 


Sample C-Hub Sections in the config.xml File

The following listing shows c-hub sections from an example of the config.xml file.

Listing 2-5 Sample C-Hub Configuration Sections in the config.xml File

<StartupClass
ClassName="com.bea.b2b.hub.Startup"
Name="WLCStartup"
Targets="myserver"
/>
<JDBCTxDataSource
JNDIName="WLCHub.DS"
Name="WLCHub.DS"
PoolName="wlcPool"
EnableTwoPhaseCommit="true"
Targets="myserver"
/>
<Application
Name="WLCHubAdmin"
Path="d:/bea/WLC/lib"
>
<WebAppComponent
Name="WLCHubAdmin"
ServletReloadCheckSecs="1"
Targets="myserver"
URI="hubadmin.war"
/>
</Application>
<JDBCConnectionPool
CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="1"
LoginDelaySeconds="1"
MaxCapacity="10"
Name="wlcPool"
Properties="user=scott;password=tiger"
RefreshMinutes="0"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true"
Targets="myserver"
URL="jdbc:oracle:thin:@fushigi.beasys.com:1521:fush816"
/>
<JMSServer
Name="WLCJMSServer"
Targets="myserver"
/>