Configuring the Trust Service in the WebCenter Domain

Managing WebCenter Personalization 19-9 script, an example of which that can be customized or used directly is provided. The sample script sets up provider connections and also initializes the Trust Services. The Personalization WLST commands are installed at oracleas11gr1wccommonwlstWCPS.py and are invoked using the oracleas11gr1wccommonbinwlst.shcmd script. Each out-of-the-box data provider is supported with specific WLST commands described in sections below. For custom data providers, use the generic WLST commands to configure a connection. For example: createWCPSCustomConnectioncustomConnectionName, connectionType, properties={ name1: value1, name2: value2 } For a complete list of WebCenter Personalization WLST connection and other commands, see the section Personalization in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.

19.4.1.4 Configuring Connections Using JConsole

JConsole located in JAVA_HOMEjdk6binjconsole, can be used to create, view or edit the JMX MBeans the connection configuration MBeans for Activity Graph, CMIS, and People Connections deployed with WebCenter Personalization. These tasks are described in the following subsections: ■ Section 19.4.1.4.1, Creating a New Connection Using JConsole ■ Section 19.4.1.4.2, Editing Connection Settings Using JConsole

19.4.1.4.1 Creating a New Connection Using JConsole

To create a connection:

1. Invoke JConsole as shown below:

jconsole -J-Djava.class.path=JAVA_HOMElibjconsole.jar:JAVA_HOMElibtools.jar:ORACL E_HOMEoraclewlserver_10.3serverlibwljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote 2. Open the JConsole Remote Connection: service:jmx:iiop:example.com:7001jndiweblogic.management.mbeanservers.domai nruntime Username: weblogic Password: welcome1 3. In the tree under oracle.wcps.connections, navigate to ConnectionConfiguration and select Operations. 4. Click addConnection and enter the Namespace, Type, and Name. Note that these connections are predefined for the out-of-the-box providers by using the configureConnectionsWCPS.py script.

19.4.1.4.2 Editing Connection Settings Using JConsole

To view or edit connection settings: 1. Invoke JConsole as shown below: jconsole -J-Djava.class.path=JAVA_HOMElibjconsole.jar:JAVA_HOMElibtools.jar:ORACL 19-10 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter E_HOMEoraclewlserver_10.3serverlibwljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote 2. Open the JConsole Remote Connection: service:jmx:iiop:example.com:7001jndiweblogic.management.mbeanservers.domai nruntime Username: weblogic Password: welcome1 3. Change the connection property for the provider. For example, to change the Activity Graph host name: a. Expand the tree: oracle.wcps.connections-ConnectionConfiguration.Namespace.Connection-defa ult-activity.provider.connection-ConnectionConfiguration-wcps-services- ActivityGraphConfigConnection-Attributes

b. Click on Properties.

c. In the right panel, double click the value in the first row. You can now scroll through current values using Composite Navigation. d. To change the host value, click on Properties in the navigation tree, supply a name and new value, and then click setProperty.

19.4.1.5 Configuring Connections Using Fusion Middleware Control

You can use Fusion Middleware Control to view or edit the JMX MBeans the connection configuration MBeans for Activity Graph, Oracle Content Server, and People Connections deployed with WebCenter Personalization. To view or edit connection configuration MBeans:

1. Open Fusion Middleware Control Navigate to Personalization Services.

2. Click WCPS-Services.

3. From the Application Development drop-down menu, select System MBean

Browser . 4. In the MBean browser under Application Defined MBeans, select oracle.wcps.connections and continue to drill down to the connection information you wish to modify.

5. On the Attributes tab, select Properties to view current values of connection

attributes.

6. On the Operations tab, select setProperty and click Invoke to modify the

namevalue pairs.

19.4.1.6 Writing a Custom Configuration Class

Custom configuration classes classes annotated with ConnectionConfiguration are implemented by customers writing their own data providers. This allows custom data providers to use the Personalization connection framework to retrieve connection information configured using the Personalization WLST scripts. Custom configuration classes for data providers are more fully described in the section on Custom Data Providers in the Oracle Fusion Middleware Developers Guide for Oracle WebCenter.