Description Syntax Examples setIMPConnection

Oracle WebCenter Custom WLST Commands 10-85 timeout=60, default=0 The following example creates an external application suitable for an instant messaging and presence server connection and then creates a connection named myLCSPresenceServer to a Microsoft Live Communications Server: wls:weblogicserverConfig createIMPExtAppappName=webcenter, name=LCSExtApp, displayName=IMP Ext App wls:weblogicserverConfig createIMPConnectionappName=webcenter, name=myLCSPresenceServer, adapter=LCS, url=http:mylcshost.comowclcs, appId=LCSExtApp, poolName=pool1.myhost.com, timeout=60, default=1 The following example creates an instant messaging and presence server connection to a Microsoft Office Communications Server named myOCSPresenceServer. wls:weblogicserverConfig createIMPConnectionappName=webcenter, name=myOCSPresenceServer, adapter=OCS, url=http:myocshost.comowcocs, appId=OCSExtApp, userDomain=OCS, poolName=pool01.myocshost.com, timeout=60, default=1

10.9.2 setIMPConnection

Module: Oracle WebCenter Use with WLST: Online

10.9.2.1 Description

Edits an existing instant messaging and presence server connection. Use this command to update connection attributes. The connection is created using the createIMPConnection command.

10.9.2.2 Syntax

setIMPConnectionappName, name, [adapter, url, domain, appId, poolName, policyURI, userDomain, timeout, default, server, applicationVersion] Argument Definition appName Name of the WebCenter application in which to perform this operation. name Name of an existing presence server connection. adapter Optional. Adapter name. Specify the adapter that matches your instant messaging and presence server. Valid values are LCS, OWLCS, and OCS. Choose OWLCS for Oracle WebLogic Communication Server. Choose LCS for Microsoft Live Communications Server. Choose OCS for Microsoft Office Communications Server. url Optional. URL of the server hosting instant messaging and presence services. domain Deprecated. Use the setIMPServiceProperty command to resolve IM addresses. 10-86 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

10.9.2.3 Examples

The following example updates attributes for an existing instant messaging and presence server connection. wls:weblogicserverConfigsetIMPConnectionappName=webcenter, name=myOWLCSPresenceServer, adapter=OWCLS, url=http:myowlcshost.com:8888 appId Optional. External application associated with the presence server connection. If specified, external application credential information is used to authenticate users against the LCS, OCS, or OWLCS server. This argument is mandatory for LCS and OCS server connections. The external application you configure for instant messaging and presence services must use authMethod=POST, and specify an additional field with fieldName=Account and displaytoUser=1. If an external application does not exist yet, use the WLST command createIMPExtAppConnection to create an external application that automatically has all the required additional fields. See also addExtAppField and setExtAppField . poolName Optional. LCS and OCS connections only. Pool name that is required to create an LCS or OCS connection. Refer to Microsoft Live Communications Server or Microsoft Office Communications Server documentation for details on pool names. This argument is mandatory for LCS server and OCS server connections. policyURI Optional. OWLCS connections only. URI to the security policy that is required for authentication on the Oracle WebLogic Communication Server OWLCS server. userDomain Optional. OCS connections only. Active Directory domain on the OCS server. This argument is mandatory for OCS server connections. timeout Optional. Length of time in seconds that the Instant Messaging and Presence service waits for a response from the presence server before issuing a connection timeout message. This argument defaults to -1. When set to -1, the service default 10 seconds applies. default Optional. Indicates whether this connection is the default connection for the Instant Messaging and Presence service. Valid values are 1 true and 0 false. The default for this argument is 0. To specify that the Instant Messaging and Presence service uses this connection, change the value from 0 to 1. To disable this connection, use the removeIMPServiceProperty command: removeIMPServicePropertyappName=webcenter, property=selected.connection While you can register multiple presence server connections for a WebCenter application, only one connection is used for instant messaging and presence services—the default or active connection. server Optional. Name of the managed server where the WebCenter application is deployed. For example, WC_Spaces. Required when applications with the same name are deployed to different servers and also when you have a cluster. applicationVersion Optional. Version number of the deployed application. Required if more than one version of the WebCenter application is deployed. Argument Definition Oracle WebCenter Custom WLST Commands 10-87 The following example sets attributes on an existing instant messaging and presence server connection. wls:weblogicserverConfigsetIMPConnectionappName=webcenter, name=myOWLCSPresenceServer, adapter=OWCLS, url=http:myowlcshost.com:8888, policyURI=oraclewss11_saml_token_with_message_protection_client_policy, timeout=60, default=0 The following example sets attributes on an existing instant messaging and presence server connection. wls:weblogicserverConfigsetIMPConnectionappName=webcenter, name=myLCSPresenceServer, adapter=LCS, url=http:mylcshost.comowclcs, appId=LCSExtApp, poolName=pool1.myhost.com, timeout=60, default=0

10.9.3 setIMPConnectionProperty