Configuring the sensor

The WebLogic pluggable sensors can be configured by editing the plugin.xml configuration file.

You can perform WebLogic-specific configuration by editing the <configuration> element for the following WebLogic pluggable sensors:
  • WebLogic launcher sensor
  • WebLogic server sensor
  • WebLogic application sensor

WebLogic launcher sensor configuration

The plugin.xml file for the WebLogic launcher sensor is located in the $COLLATION_HOME/osgi/plugins/com.ibm.cdb.discover.app.j2ee.weblogic.sensor.weblogiclaunchersensor_1.2.0 directory.

Within the <configuration> element, you can configure information about the configuration directory for each domain. Place the information for each domain in a separate <item> element. For each domain, you can configure the following elements:

<configDirectory>
The domain configuration directory.
<adminServer>
Contains information about the IP address and port number on which the WebLogic administration console is listening. The following elements are used to specify this information:
<listenAddress>
The IP address on which the WebLogic administration console is listening.
<listenPort>
The port number on which the WebLogic administration console is listening.
The following sample configuration file displays the typical usage of the <configuration> element, and its child elements:
<configuration className="com.ibm.cdb.discover.app.j2ee.weblogic.configuration.WeblogicLauncherConfigurationItem">
 <domain>
  <item>
   <configDirectory>/opt/bea10/wl_10.0/domains/medrec/config</configDirectory>
   <adminServer>
    <listenAddress>127.0.0.1</listenAddress>
    <listenPort>7011</listenPort>
   </adminServer>
  </item>
  <item>
   <configDirectory>/opt/bea/user_projects2</configDirectory>
   <adminServer>
    <listenAddress>127.0.0.1</listenAddress>
    <listenPort>7002</listenPort>
   </adminServer>
  </item>
 </domain>
</configuration>
You can also specify the location of the domain configuration directory by starting the WebLogic server with the following argument:
-Dpredefined.domain.config.dir=domain_directory

WebLogic server sensor configuration

The plugin.xml file for the WebLogic server sensor is located in the $COLLATION_HOME/osgi/plugins/com.ibm.cdb.discover.app.j2ee.weblogic.sensor.weblogicserversensor_1.2.0 directory.

In the plugin.xml configuration file, you can configure the following elements:

<discoverAppDescriptors>
Specifies if the discovery of application descriptors is enabled. The discovery of application descriptors can be time consuming because the descriptors are defined in additional configuration files on the remote machine where WebLogic is installed.
<discoverJdbcDetails>
Specifies if the discovery of JDBC descriptors is enabled. The discovery of JDBC descriptors can be time consuming because the descriptors are defined in additional configuration files on the remote machine where WebLogic is installed.
The following sample configuration file displays the typical usage of the <discoverAppDescriptors> and <discoverJdbcDetails> elements:
<configuration
className="com.ibm.cdb.discover.app.j2ee.weblogic.configuration.WeblogicServerConfigurationItem">
	<discoverAppDescriptors>true</discoverAppDescriptors>
	<discoverJdbcDetails>true</discoverJdbcDetails>
</configuration>

WebLogic application sensor configuration

The plugin.xml file for the WebLogic application sensor is located in the following directory:
$COLLATION_HOME/osgi/plugins/
com.ibm.cdb.discover.app.j2ee.weblogic.sensor.weblogicapplicationsensor_1.2.0

In the plugin.xml configuration file, you can configure the following elements:

<discoverApplicationDetails>
Specifies if the discovery of application/module details is enabled. The discovery of application/module descriptors (J2EE descriptors) can be time consuming because the descriptors are defined in additional configuration files on the remote machine where WebLogic is installed.
The following sample configuration file displays the typical usage of the <discoverApplicationDetails> element:
<configuration
className="com.ibm.cdb.discover.app.j2ee.weblogic.configuration.WeblogicApplicationConfigurationItem">
	<discoverApplicationDetails>true</discoverApplicationDetails>
</configuration>