Skip Headers
Oracle® Fusion Applications Developer's Guide
11g Release 1 (11.1.2)

Part Number E15524-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

26 Getting Started with Oracle Enterprise Crawl and Search Framework

This chapter provides an introduction to Oracle Enterprise Crawl and Search Framework (ECSF). It also describes how to set up ECSF.

This chapter includes the following sections:

26.1 Introduction to Using Oracle Enterprise Crawl and Search Framework

Oracle Enterprise Crawl and Search Framework (ECSF) is an Oracle Fusion Middleware search framework that enables you to quickly expose application context information on various business objects to enable full-text transactional search.

For more information, see the "Managing Search with Oracle Enterprise Crawl and Search Framework" chapter in the Oracle Fusion Applications Administrator's Guide.

26.1.1 ECSF Architecture

The ECSF framework abstracts an underlying search engine and provides a common set of application programming interfaces (APIs) for developing search functionalities. ECSF serves as an integration layer between the search engine and the Oracle Fusion applications. Figure 26-1 illustrates the architecture of the ECSF framework.

Figure 26-1 Enterprise Crawl and Search Framework Architecture

ECSF components and external dependencies

ECSF includes the following high-level components:

  • Searchable Object Manager

  • Search Designer

  • Semantic Engine

  • Fusion Applications Control

  • ECSF Command Line Administration Utility

  • Security Services

  • Data Services

  • Query Service

ECSF integrates with the Oracle Secure Enterprise Search (Oracle SES) engine to support application search. Oracle SES provides capabilities for crawling and indexing the metadata and objects exposed by ECSF. The Security Plug-in and Crawler Plug-in are modules on Oracle SES that interface with ECSF.

26.1.1.1 Searchable Object Manager

Searchable Object Manager, serving as a metadata manager, manages searchable objects and provides the runtime interface for accessing these objects. At runtime, the Searchable Object Manager loads the searchable objects from persistent storage, validates the searchable object definitions, and provides the searchable objects to the Crawlable Factory component of the Data Service.

The Searchable Object Manager is also responsible for the life cycle management of searchable objects, which administrators can deploy, customize, and enable or disable via the Fusion Applications Control or the ECSF Command Line Administration Utility.

26.1.1.2 Search Designer

The Search Designer is a page in Oracle JDeveloper 11g that provides the interface for defining the metadata that describes the business objects to be indexed. You can also use this design interface to specify the security mechanism used to protect the data, as well as define the searchable object search characteristics, which include Advanced Search, Faceted Navigation, and Actionable Results.

26.1.1.3 Semantic Engine

The Semantic Engine leverages the semantic information of searchable object definitions to create context around the search. It achieves this by interpreting the searchable object definitions with relation to the runtime user information during both crawl and query time. Runtime user information may include the following:

  • Facets

  • Actionable results

  • Security

  • Personalization

  • Internationalization

  • Data structure mapping

  • Tagging, commenting, rates

  • Results clustering

  • Context filtering

  • Custom weighting

26.1.1.4 Fusion Applications Control

The Fusion Applications Control is an Oracle Enterprise Manager extension that provides a user interface for registering searchable objects in the ECSF schema in the Oracle Fusion Applications database, as well as for administering the runtime parameters of ECSF, the target search engine, and the configuration of parameters.

26.1.1.5 ECSF Command Line Administration Utility

The ECSF Command Line Administration Utility is a standalone command line interface that provides a user interface for registering searchable objects in the ECSF schema in the Oracle Fusion Applications database. You can also use this tool for configuring and administering ECSF without external dependencies on Oracle Enterprise Manager.

26.1.1.6 Security Service

The Security Service is the runtime server component responsible for providing security information to SES. During query time, this service retrieves the security keys of the user performing the search and passes them to Oracle SES, where they are used to filter the query results.

The Security Service server component is also invoked during crawl time to add security information (access control lists) to data before inserting or creating indexes on the search engine (Oracle SES). An access control list (ACL) is a list that identifies the users who can access the associated object and that specifies the user's access rights to that object. The ACL values generated by the Security Service during crawl time should match the corresponding keys generated during query time.

Note:

In ECSF, the generic term ACL (access control list) is used to describe how Oracle SES and ECSF pass security information and perform security checks by using the information described in the ACL.

The Security Service component is implemented as a security engine with a plug-in interface. The security plug-in determines the format of the ACL keys. For all custom security models, a new Security Plug-in must be implemented. Security Service uses Oracle Platform Security for Java to authenticate users and call the Security Plug-in to retrieve security values for a given searchable object.

For more information about security for ECSF, see Chapter 28, "Configuring ECSF Security".

26.1.1.7 Data Service

Data Service is the primary data interface, based on a proprietary Really Simple Syndication (RSS) feed format, between ECSF and the search engine. In addition to supporting the flow of metadata between ECSF and the search engine, Data Service supports attachments, batching, and error handling.

Data Service authenticates each Oracle SES crawl request by using Oracle Platform Security for Java to validate the user credentials and permissions for crawling the data source.

The Crawlable Factory component, part of Data Service, determines how searchable objects are broken down and manages the construction of RSS feeds to the search engine.

26.1.1.8 Query Service

The Query Service provides a search interface for the applications UI and handles all search requests. This service performs query rewrite, parameter substitution, and other preprocessing operations before invoking the underlying configured search engine.

Search results are also serviced via this service. Hooks are provided to preprocess and postprocess data, which facilitates the capability to filter search results.

26.1.1.9 Oracle SES Search Engine

Oracle SES enables a secure, uniform search across multiple enterprise repositories. ECSF integrates with Oracle SES technology to provide full-text search functionality in Oracle Fusion Applications.

For more information about Oracle SES, see Oracle Secure Enterprise Search Administrator's Guide.

Note:

The application server space is demarcated to identify that ECSF runs in a separate application server, outside the search engine. It is recommended, for performance reasons, that each search engine instance runs on separate hardware.

26.1.1.10 Security Plug-in

Oracle SES provides an API for writing security plug-ins (or connectors) in Java. With this API, you can create a security plug-in to meet your requirements. ECSF Security Service interfaces with this security plug-in. The Security Plug-in invokes the Security Service to retrieve keys, to which the user has access, for filtering the results that are delivered to the ECSF query service. A proxy user must be set up on the search engine in order to invoke the Security Service. The proxy user must have security privileges for the Oracle Fusion applications. For more information about security for ECSF, see Chapter 28, "Configuring ECSF Security".

26.1.1.11 Crawler Plug-in

The Crawler Plug-in is a search engine (Oracle SES) module that implements the modified RSS feed format between ECSF and Oracle SES. This component deserializes the data sent from ECSF, via the Data Service component, and interfaces with the Oracle SES components that creates the indexes.

26.2 Setting Up and Running ECSF Command Line Administration Utility

You can use the ECSF Command Line Administration Utility to quickly test and manage the searchable objects without having to use Oracle Enterprise Manager Fusion Applications Control.

Note:

Administrators should use Fusion Applications Control to manage the life cycle of searchable objects in the production environment.

Before you can run the utility, you must complete the following setup requirements:

  1. Make the searchable objects accessible to the ECSF Command Line Admin Utility.

  2. Set the class path to make sure it contains the required Oracle classes. ECSF provides a set of scripts that you can use to set the class path.

  3. Connect to the database by performing one of the following tasks:

    • Provide the connection information in the script so that the ECSF Command Line Administration Utility automatically connects to the specified database during startup.

    • Manually connect to the database after you start the ECSF Command Line Administration Utility.

  4. Provide the path of the JPS Config file.

  5. Create ECSF query proxy users. In order to perform commands that connect to the Oracle SES server (for example, deploy, start schedule, etc.), the engine instance must be set up correctly so that its parameters have the required information. For more information, see the "Managing Search with Oracle Enterprise Crawl and Search Framework" chapter in the Oracle Fusion Applications Administrator's Guide.

  6. (Optional) Configure the log settings.

  7. (Optional) Set the startup parameter to support taking input from a text file.

After you have set up the ECSF Command Line Administration Utility, you can run the utility by any of the following ways:

Enter a username and password when prompted.

Note:

If you enter an invalid username and password, you can either reconnect manually by using the connect command, or exit the ECSF Command Line Administration Utility (type exit or press Ctrl-C) and try again.

When you update passwords in the Lightweight Directory Access Protocol (LDAP) credential store from the ECSF Command Line Administration Utility, the jps-config-jse.xml file must contain the same LDAP information as the jps-config.xml file. Java Platform Security (JPS) does not propagate the changes from jps-config.xml to jps-config-jse.xml automatically.

All commands, responses, and error messages in the ECSF Command Line Administration Utility are logged.

To exit the ECSF Command Line Administration Utility, enter the exit command at the prompt.

26.2.1 How to Make Searchable Objects Accessible to the ECSF Command Line Administration Utility

Make the searchable objects accessible to the ECSF Command Line Administration Utility by adding the ADF library JAR file containing the view object and entity object definitions to its class path.

The ECSF Command Line Administration Utility needs the path of the JAR file containing the searchable objects. These metadata objects are validated during register and unregister operations.

You can find the unpacked EAR files containing the searchable object JAR files for the search applications in the following locations:

  • /net/mount1/appbase/fusionapps/applications/fscm/deploy/EarFscmSearch.ear/APP-INF/lib/searchable_object_jar_file

  • /net/mount1/appbase/fusionapps/applications/crm/deploy/EarCrmSearch.ear/APP-INF/lib/searchable_object_jar_file

  • /net/mount1/appbase/fusionapps/applications/hcm/deploy/EarHcmSearch.ear/APP-INF/lib/searchable_object_jar_file

To add the ADF library JAR file containing the view object and entity object definitions to the class path for the ECSF Command Line Administration Utility, you must first create the ADF library. For information, see the "Adding ADF Library Components into Projects" section in Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework.

The application JAR file, which contains the searchable objects that are defined in your application, is written to the deploy directory of the project.

In order to deploy or undeploy a searchable object, a JAR file containing the searchable object must be specified in the class path of the ECSF Command Line Administration Utility. For information, see Section 26.2.2, "How to Set the Class Path".

If you are deploying searchable objects from multiple applications, you must create a JAR file for each of those applications in order to add the searchable objects to the class path.

26.2.2 How to Set the Class Path

In order for the ECSF Command Line Administration Utility to run, the class path must contain the required Oracle classes. Modify and run scripts to set the class path, as well as optional connection information, and run the ECSF Command Line Administration Utility.

Note:

If you receive a java.lang.ClassNotFoundException exception, then add the JAR file containing that class to ADMIN_CP in the script.

The ECSF Command Line Administration Utility references the class path to obtain the location of Oracle Library home, Java home, Oracle WebLogic Server home, and the JAR files needed for the ECSF Command Line Administration Utility operations.

26.2.2.1 Setting the Class Path in Windows

Modify and run the runCmdLineAdmin.bat script to set the class path in a Windows environment.

To set the class path in Windows:

  1. In a text editor, open the runCmdLineAdmin.bat script from MW_HOME/Oracle_atgpf1/ecsf/modules/oracle.ecsf_11.1.1/admin.

  2. Specify the Oracle Library home directory path by locating the line set ORACLE_LIBRARY_HOME=SET_ORACLE_LIBRARY_HOME and replace SET_ORACLE_LIBRARY_HOME with the ATGPF shiphome directory, for example, set ORACLE_LIBRARY_HOME=C:\mw_home\oracle_common.

  3. Specify the ATGPF Library home directory path by locating the line set ATGPF_LIBRARY_HOME=SET_ATGPF_LIBRARY_HOME and replace SET_ATGPF_LIBRARY_HOME with the ATGPF shiphome directory, for example, set ATGPF_LIBRARY_HOME=C:\mw_home\Oracle_atgpf1.

    Specify the ATGPF Library home directory path by locating the line set ATGPF_LIBRARY_HOME=SET_ATGPF_LIBRARY_HOME and replace SET_ATGPF_LIBRARY_HOME with the ATGPF Library directory, for example, set ATGPF_LIBRARY_HOME=c:\fmwtools_view\fmwtools\mw_home\jdeveloper.

  4. Specify the Oracle WebLogic Server home directory path:

    1. Locate the following line: set WLS_HOME=SET_WLS_HOME

    2. Replace SET_WLS_HOME with the Oracle WebLogic Server home directory path, for example, set WLS_HOME= C:/MW_HOME/wlserver_10.3

  5. Specify the Java home directory path:

    • Locate the following line: set JAVA_HOME=SET_JAVA_HOME

    • Replace SET_JAVA_HOME with the Java home directory path (where the Java executable should be located), for example, set JAVA_HOME=C:\Java\jdk\bin.

    The version of Java used must match the version required by the Oracle build.

  6. Specify the directory path of the application JAR file:

  7. Save the script file.

26.2.2.2 Setting the Class Path in Linux

Modify and run the runCmdLineAdmin.sh script to set the class path in a Linux environment.

To set the class path in Linux:

  1. In a text editor, open the runCmdLineAdmin.sh script from MW_HOME/Oracle_atgpf1/ecsf/modules/oracle.ecsf_11.1.1/admin.

  2. Specify the Oracle Library home directory path by locating the line export ORACLE_LIBRARY_HOME=SET_ORACLE_LIBRARY_HOME and replace SET_ORACLE_LIBRARY_HOME with the ATGPF shiphome directory, for example, export ORACLE_LIBRARY_HOME="/scratch/mw_home/Oracle_atgpf1".

    Specify the Oracle Library home directory path by locating the line export ORACLE_LIBRARY_HOME=SET_ORACLE_LIBRARY_HOME and replace SET_ORACLE_LIBRARY_HOME with the Oracle Common Library directory, for example, export ORACLE_LIBRARY_HOME="/scratch/login/view_storage/login_fmwtools_view/fmwtools/mw_home/oracle_common".

  3. Specify the ATGPF Library home directory path by locating the line export ATGPF_LIBRARY_HOME=SET_ATGPF_LIBRARY_HOME and replace SET_ATGPF_LIBRARY_HOME with the ATGPF shiphome directory, for example, set ATGPF_LIBRARY_HOME="/scratch/fmwtools/mw_home/Oracle_atgpf1".

  4. Specify the Java home directory path:

    • Locate the following line: export JAVA_HOME="set_java_home"

    • Replace set_java_home with the Java home directory path (where the Java executable should be located), for example, export JAVA_HOME="/Java/jdk/bin".

    The version of Java used must match the version required by the Oracle build.

  5. Specify the directory path of the application JAR file:

  6. Save the script file.

  7. Run the script.

26.2.3 How to Set the Connection Information

The ECSF Command Line Administration Utility requires an Oracle Fusion Applications database, to which it can either be directly connected or connected through a remote MBean. In order to use the ECSF Command Line Administration Utility, you must supply the connection information.

Set the connection information in the runCmdLineAdmin script so that the ECSF Command Line Administration Utility automatically connects to the specified database or MBean server during startup. If you do not include the connection information in the script, then you must manually create the connection to the Oracle Fusion Applications database after you start the ECSF Command Line Administration Utility. For information, see Section 26.2.4, "How to Manually Connect to the Oracle Fusion Applications Database".

The information for connecting to the database or MBean server is saved in the runCmdLineAdmin script for the ECSF Command Line Administration Utility to use for connecting to the Oracle Fusion Applications database at startup. You are prompted to enter a password after you start the ECSF Command Line Administration Utility.

26.2.3.1 Setting the Connection Information in Windows

Modify the runCmdLineAdmin.bat script to set the connection information in a Windows environment.

To set the connection information in Windows:

  1. Open the runCmdLineAdmin.bat script, located in JDEV_INSTALL/ecsf, in a text editor.

  2. Locate set CONNECT_INFO= and specify the database or MBean server, using one of the following formats:

    • connect to mbeanserver hostname port

    • Using SID:

      connect to database hostname port SID

      For example,

      set CONNECT_INFO=connect to database fusionhost123 1566 fh123.

    • Using service name:

      connect to database service hostname port servicename

      For example,

      set CONNECT_INFO=connect to database service fusionhost123 5521 myservice

    • Using database descriptor:

      connect to database descriptor 'descriptor'

      The descriptor argument must be enclosed in quotation marks and can contain either the SID or service name. For example:

      • Using SID:

        set CONNECT_INFO=connect to database descriptor '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SID=dbmsdb2)))'

      • Using service name:

        set CONNECT_INFO=connect to database descriptor '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SERVICE NAME=myservice)))'

  3. Save the script file.

26.2.3.2 Setting the Connection Information in Linux

Modify and run the runCmdLineAdmin.sh script to set the connection information in a Linux environment.

To set the connection information in Linux:

  1. Open the runCmdLineAdmin.sh script, located in ORACLE_HOME/jdeveloper/ecsf, in a text editor.

  2. Locate export CONNECT_INFO="" and specify the database or MBean server, using one of the following formats:

    • connect to mbeanserver hostname port

    • Using SID:

      connect to database hostname port SID

      For example,

      set CONNECT_INFO=connect to database fusionhost123 1566 fh123
      
    • Using service name:

      connect to database service hostname port servicename

      For example,

      set CONNECT_INFO=connect to database service fusionhost123 5521 myservice
      
    • Using database descriptor:

      connect to database descriptor 'descriptor'

      The descriptor argument must be enclosed in quotation marks and can contain either the SID or service name. For example:

      • Using SID:

        set CONNECT_INFO=connect to database descriptor '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SID=dbmsdb2)))'
        
      • Using service name:

        set CONNECT_INFO=connect to database descriptor '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SERVICE NAME=myservice)))'
        
  3. Save the script file.

26.2.4 How to Manually Connect to the Oracle Fusion Applications Database

The ECSF Command Line Administration Utility requires an Oracle Fusion Applications database, to which it can either be directly connected or connected through a remote MBean, for command execution. In order to use the ECSF Command Line Administration Utility, you must supply the connection information.

You can supply connection information either before or after starting the ECSF Command Line Administration Utility. Supplying the connection information before startup allows the ECSF Command Line Administration Utility to automatically connect to the specified database or MBean server during startup. For information, see Section 26.2.3, "How to Set the Connection Information".

If you choose not to supply the connection information before startup, you must manually create the connection to the Oracle Fusion Applications database after you start the ECSF Command Line Administration Utility.

To create the connection to the Oracle Fusion Applications database:

To create a connection to the Oracle Fusion Applications database directly, enter one of the following commands at the ECSF Command Line Administration prompt, then press Enter:

  • connect to database

    The ECSF Command Line Administration Utility prompts you for the host name, port, and SID.

  • connect to database service

    The ECSF Command Line Administration Utility prompts you for the host name, port, and service name.

  • connect to database descriptor

    The ECSF Command Line Administration Utility prompts you for the descriptor.

    The descriptor argument must be enclosed in quotation marks and can contain either the SID or service name. For example:

    • Using SID:

      '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SID=dbmsdb2)))'
      
    • Using service name:

      '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SERVICE NAME=myservice)))'
      
  • connect to database hostname port SID

    You can directly pass the required values as arguments into the command.

  • connect to database service hostname port servicename

    You can directly pass the required values as arguments into the command.

  • connect to database descriptor 'descriptor'

    You can directly pass the required value as an argument into the command. The descriptor argument must be enclosed in quotation marks and can contain either the SID or service name. For example:

    • Using SID:

      '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SID=dbmsdb2)))'
      
    • Using service name:

      '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fusionhost123)(PORT=5521))(CONNECT_DATA=(SERVICE NAME=myservice)))'
      

To create a connection to the Oracle Fusion Applications database through a remote MBean, enter one of the following commands at the ECSF Command Line Administration prompt, then press Enter:

  • connect to mbeanserver

    The ECSF Command Line Administration Utility prompts you for the required values.

  • connect to mbeanserver hostname port

    You can directly pass the required values as arguments into the command.

The ECSF Command Line Administration Utility prompts you to enter a username and password.

26.2.5 How to Provide the Path of the JPS Config File

The JPS Config file (jps-config-jse.xml) contains the credential store information needed for running the ECSF Command Line Administration scripts. You must provide the path of the JPS Config file by modifying the ECSF Command Line Administration scripts.

To set the JPS Config file path:

  1. Open the runCmdLineAdmin.bat (Windows) or runCmdLineAdmin.sh (Linux) script, located in ORACLE_HOME/jdeveloper/ecsf, in a text editor.

  2. Set the JPS_CONFIG parameter to point to the location of jps-config-jse.xml (usually at DOMAIN_HOME/config/fmwconfig/jps-config-jse.xml).

  3. Save.

26.2.6 How to Configure the Log Settings

The scripts for the ECSF Command Line Administration Utility point to the logging configuration file (ecsfcla-logging.xml), where you can configure log settings, such as log level and log file location. The ecsfcla-logging.xml file is located in the same directory as the ECSF Command Line Administration scripts (JDEV_INSTALL/ecsf/). To configure log settings, modify the property values in ecsfcla-logging.xml and save the file.

The location of ecsfcla-logging.xml can be changed by modifying the ODL_CONFIG parameter in the ECSF Command Line Administration scripts.

All commands, responses, and error messages in the ECSF Command Line Administration Utility are logged. The generated log files follow the format ecsfCmdLineAdminLog*.txt, and its default location is JDEV_INSTALL/ecsf/log/.

26.2.7 How to Automate the ECSF Command Line Administration Utility

You can set the ECSF Command Line Administration Utility to automatically execute a defined sequence of commands when you run the utility. To automate the ECSF Command Line Administration Utility in this way, you must configure the startup script to take inputs from a text file that you create.

The input file must contain one command per line. Any values that are not passed in with a command and are typically prompted for (for example, username and password) must occupy their own lines in the file. You must include a connect command since this is not passed in during the automated startup, and you must also include the exit command as the last command in the file in order to exit the ECSF Command Line Administration Utility. Example 26-1 illustrates a sample list of commands for an input file.

Example 26-1 Sample Input File

connect to database fusionhost123 1566 fh123
fusion
fusion
manage instance 1
set param "SES_ADMIN_SERVICE"="http://example.com:7777/search/api/admin/AdminService"
set param "SES_ADMIN_USERNAME" = "eqsys"
exit

You must know all of the object IDs when you create the input file. Using the input file, you cannot create a new object and then manage it in one automation.

To configure the startup script to automatically run the commands you defined in the input file, you must modify the startup script to include the AUTOMATE command in the STARTUP_PARAMS parameter.

To set the JPS Config file path:

  1. Open the runCmdLineAdmin.bat (Windows) or runCmdLineAdmin.sh (Linux) script, located in ORACLE_HOME/jdeveloper/ecsf, in a text editor.

  2. Set the STARTUP_PARAMS parameter to AUTOMATE and point to the location of input file. For example,

    STARTUP_PARAMS="AUTOMATE /scratch/commands.txt"

    where commands.txt is the input filename.

  3. Save.

    The output of the ECSF Command Line Administration Utility is displayed on the screen (or can be redirected), and errors are logged in the log file as usual. If the input file cannot be found, the ECSF Command Line Administration Utility runs in its usual mode and waits for the user to input a command through the prompt.

26.3 Setting Up Oracle Enterprise Manager and Discovering ECSF

While the ECSF Command Line Administration Utility can be used to quickly test and manage the searchable objects, Oracle Enterprise Manager Fusion Applications Control should be used to manage the life cycle of searchable objects in the production environment.

The ECSF runtime application needs to register its MBean to WebLogic's Domain Runtime MBean server, and the Oracle Enterprise Manager Fusion Applications Control needs to invoke all ECSF runtime operations through the MBean.

To access the Fusion Applications Control, you must install and configure Oracle Enterprise Manager (EM) to work with ECSF. You do not need to set up Oracle Enterprise Manager if you plan to use the ECSF Command Line Administration Utility to administer search.

To set up Oracle Enterprise Manager for ECSF, you must perform the following tasks:

  1. Register the ECSF runtime application MBean.

  2. Install Oracle Enterprise Manager.

  3. Discover ECSF in Oracle Enterprise Manager.

  4. Add users to the Administrators group.

Multiple developers can share one single Oracle Enterprise Manager application with the Fusion Applications Control.

26.3.1 How to Register the ECSF Runtime MBean to the Integrated WebLogic Server

The ECSF runtime application registers an MBean (oracle.ecsf.mbean.SearchRuntimeAdminMXBean) in WebLogic's Domain Runtime MBean server through a listener class (oracle.ecsf.mbean.RegisterMbeanContextListener). All ECSF runtime operations are invoked through the MBean.

To register the MBean:

  1. Add the MBean listener to web.xml.

  2. Create the application enterprise archive (EAR) file.

  3. Configure the data sources.

  4. Deploy the ECSF application.

  5. Start the Oracle WebLogic Server instance.

Registering the ECSF runtime MBean to the Integrated WebLogic Server makes the MBean available to remote clients such as Fusion Applications Control in Oracle Enterprise Manager.

26.3.1.1 Adding the MBean listener to web.xml

Add the MBean listener by modifying web.xml to include oracle.ecsf.mbean.RegisterMbeanContextListener.

To add the MBean listener:

  1. In the view-controller project in the Application Navigator, expand Web Content, then expand WEB-INF, and open web.xml.

  2. Add the following <listener> element in web.xml:

    <listener>

    <listener-class>oracle.ecsf.mbean.RegisterMbeanContextListener</listener-class>

    </listener>

  3. Save.

26.3.1.2 Creating the Application EAR File for Deployment

Create the application EAR file to be deployed. Right-click the application name and navigate to Deploy > ECSF application deployment profile > to EAR file. When the deployment is complete, you can find the generated EAR file in the JDeveloper log message window.

26.3.1.3 Configuring Data Sources in Oracle WebLogic Server

You must configure data sources in Oracle WebLogic Server for MBean integration. For information, see Oracle Fusion Middleware Configuring Server Environments for Oracle WebLogic Server.

Search for a data source with the JNDI name SearchDBDS. If any exist, make sure to look at the connection and validate that SearchDBDS is pointing to the correct database. If SearchDBDS is not listed, you must create a data source with jdbc/SearchDBDS as the JNDI name and with the connection information to the database against which the Fusion web application is running.

26.3.1.4 Deploying the ECSF Application Using the EAR File

Make the MBean available by deploying the EAR file you created to Integrated WebLogic Server. For information, see Oracle Fusion Middleware Configuring Server Environments for Oracle WebLogic Server.

Make sure that the EAR file is deployed and the application status is active in the final step.

26.3.1.5 Starting the Oracle WebLogic Server Instance

When the MBean is available after you deploy the enterprise archive (EAR) file, you can start the Oracle WebLogic Server instance by selecting Start Server Instance from the Run menu.

26.3.2 How to Install Oracle Enterprise Manager

You must install Oracle Enterprise Manager in order to access the Fusion Applications Control. Installing Enteprise Manager allows you to then enable it to discover the ECSF custom application target in Oracle WebLogic Server.

26.3.3 How to Discover ECSF in Oracle Enterprise Manager

In order to use Fusion Applications Control in Oracle Enterprise Manager, you must first enable Oracle Enterprise Manager to discover the ECSF custom application target in Oracle WebLogic Server. When you discover ECSF in Oracle Enterprise Manager, you enable Oracle Enterprise Manager to detect and display the Fusion Applications Control. You only need to discover the ECSF custom application target in Oracle WebLogic Server once. Once it is discovered, you can directly launch EM with the following URL:

http://your machine name:port/em

To discover ECSF in Oracle Enterprise Manager:

  1. Invoke the target discovery page in Oracle WebLogic Server with the following URL:

    http://your machine name:port/em/faces/as/discovery/addWeblogic

  2. Complete the following fields and click Submit:

    • Host (the name of the machine that hosts Oracle WebLogic Server)

    • Port (the Oracle WebLogic Server runtime port number, for example, 7101)

    • Username (for example, weblogic)

    • Password (for example, weblogic)

    Note:

    You can discover multiple Oracle WebLogic Servers by specifying a value for Farm Name Prefix (for example, Farm).
  3. Click Farm_DefaultDomain.

  4. At the Oracle Enterprise Manager login page (http://your machine name:port/em), log in with the following credentials:

    • Username: weblogic

    • Password: weblogic

  5. To start Fusion Applications Control, navigate to Farm_DefaultDomain > Fusion Middleware > Enterprise Crawl and Search Framework and click EcsfRuntimeApp.

Note:

You only need to discover the ECSF custom application target in Oracle WebLogic Server once. Once it is discovered, you can directly launch EM with the following URL:

http://your machine name:port/em

26.3.4 How to Add Users to the Administrators Group

In order to access the ECSF pages in Fusion Applications Control, users must be created and added to the Operator group and above on Oracle WebLogic Server. For information, see Oracle Fusion Middleware Securing Oracle WebLogic Server.