 | Configuring streaming for content retrieval — no security enabled
This section of the tutorial describes how to configure streaming for content retrieval in an OmniFind Enterprise Edition search application when security is turned off in both WebSphere Application Server V6.1 (where the OmniFind Enterprise Edition search application is deployed) and WebSphere Application Server V6.0 (where the WebSphere Portal server is deployed).
Section overview
The high level tasks to configure streaming for content retrieval in the search application without security enabled are:
Install and configure HTTP Access Servlet in the Portal Server
Follow these steps to install and configure HTTP Access Servlet in the Portal
Server:
-
On the portal server, install the Information Integrator Content
Edition HTTP access servlet.
The servlet is contained in the vbr_httpaccess.war file under the <IICE 8.4 Install>\war directory.
- Log into the WebSphere Application Server V6.0 administration console for the server instance where the WebSphere Portal server is deployed.
-
Go to Applications -> Install New Applications (Figure 3).
- On the screen for specifying the path to the application, enter the fully qualified path to the vbr_httpaccess.war file
and
vbr_httpaccess for Context root. Click Next.
Figure 3. Specify the path to the WAR file
- On the screen for generating default bindings and mappings, leave all the default options (Figure 4)
and click Next.
Figure 4. Generate default bindings and mappings
- You receive security warnings about the installation (Figure 5). Click Continue.
Figure 5. Security warning
- On the screen for specifying installation options (Figure 6), leave the
Distribute application check box selected and clear the Create MBeans for
resources check box. Click Next.
Figure 6. Select installation options screen
- On the screen for mapping modules to servers (Figure 7), select the IBM
Information Integrator Content Edition HTTP Access module and the
WebSphere Portal server from the Clusters and Servers list. Click
Apply.
Figure 7. Map modules to servers
- You now see that the HTTP access Web module is mapped to the WebSphere Portal server (Figure 8).
Click Next.
Figure 8. HTTP access Web module mapped to the WebSphere Portal server
- On the screen for mapping virtual hosts for Web modules (Figure 9), keep
the defaults and click Next.
Figure 9. Map virtual hosts for Web modules step
- On the summary screen (Figure 10), click Finish.
Figure 10. Summary screen
- On the installing screen (Figure 11), click the Save to Master
Configuration link.
Figure 11. Installing screen
- On the saving master configuration screen (Figure 12), click Save.
Figure 12. Saving master configuration
- From the WebSphere Portal server instance, go to Process Definition -> Java
Virtual Machine -> Custom Properties (Figure 13) and
ensure that there is an entry for vbr.home.
Set the value of the vbr.home custom property to the home directory where Information Integrator Content
Edition is installed.
Figure 13. Check vbr.home
- You must also add a reference to the vbr.jar file as a shared library under the
vbr_httpaccess.war file that you just installed.
If you do not already have a shared library defined, go to Environment -> Shared
Libraries in the WebSphere Application Server V6.0 administration console (Figure
14) and
add a new library named VBR_JAR_SHARED_LIB.
Figure 14. Shared libraries
- From the Shared libraries screen, click on the VBR_JAR_SHARED_LIB library to bring up
its configuration screen (Figure 15).
Configure the Classpath for the library to point to the vbr.jar file under the Information
Integration Content Edition install directory on the portal server and click OK.
Figure 15. Configuring shared libraries
- From the WebSphere Application Server V6.0 administration console, go to
Enterprise Applications -> vbr_httpaccess_war -> Additional Properties ->
Libraries (Figure 16) and click Add.
Figure 16. Adding a library reference
- On the configuration screen for the new library reference (Figure 17), select VBR_JAR_SHARED_LIB
as the library name and click OK.
Figure 17. Configuring library reference properties
- Save your changes to the master configuration.
- Stop and restart the WebSphere Portal server instance so all the changes to the server
instance take effect.
- Now you need to configure the Information Integrator Content Edition Portal Document
Manager connector properties to add the HTTP access information. This enables the
connector to know the URL that it needs to contact to stream the document.
Start the Information Integrator Content Edition administration tool in direct mode and
bring up the properties editor for the Portal Document Manager connector (Figure 18).
Figure 18. Properties editor
- On the properties editor, click HTTP Access Information to bring up the HTTP
Access Information editor (Figure 19). Enter the following string in the
field named URL Base:
http://$HOSTNAME:10038/vbr_httpaccess
Leave $HOSTNAME as it is shown (this is a
variable that is be replaced by
the Information Integrator Content Edition runtime during actual document
retrieval). Click OK.
Figure 19. HTTP Access Information
- In this step
you enable the DEBUG level of logging for the Information Integrator Content Edition
Portal Document Manager connector. This allows detailed logging to be generated for the
connector in the WebSphere Portal server SystemOut.log file. You will use this detailed logging later to verify that streaming works.
From the Information Integrator Content Edition administration tool, right-click
Configuration Data and click Properties… to bring up the Properties
Editor - Configuration Data screen (Figure 20).
Figure 20. Properties editor
- Click Custom Logging to bring up the Custom Logging Editor (Figure 21).
Figure 21. Custom Logging Editor
- Change the logging setting for
log4j.category.com.venetica
to DEBUG,A1,A2 and click OK.
-
Save all the configuration changes and exit the administration tool.
 |
Configure the OmniFind Enterprise Edition search application to enable Information Integrator Content Edition streaming
Follow these steps to configure the OmniFind Enterprise Edition search application to enable Information Integrator Content Edition streaming:
- The config.properties file for the OmniFind Enterprise Edition search
application contains the configuration options to enable streaming.
Locate the file in the following directory and open it in an editor:
<OmniFind Enterprise Edition Install Directory>\installedApps\ESSearchApplication.ear\ESSearchApplication.war\WEB-INF
-
Make the following changes to the config.properties file:
- Set the
vbr.stream.enable variable to true:
- Set the
vbr.stream.mode variable to direct:
- Set the
vbr.stream.username variable to a valid user ID of the WebSphere Portal server:
vbr.stream.username=valid_username |
- Set the
logging.level
variable to FINEST.
This allows the search application to generate detailed
logging, which you can use later to verify that streaming
is enabled and working properly.
- Save the changes to the config.properties file.
Configure the OmniFind Enterprise Edition Search Server instance in WebSphere Application Server
Follow these steps to configure the OmniFind Enterprise Edition Search Server instance in WebSphere Application Server:
-
From the OmniFind Enterprise Edition server, log into the WebSphere Application Server V6.1 administration console for the ESSearchServer server instance where the search server is deployed.
Go to Server Infrastructure -> Java and Process Management ->
Process Definition -> Java Virtual Machine -> Custom
Properties (Figure 24) and look for a property named vbr.home.
Figure 24. Custom Properties
- If the vbr.home property is not already defined, add it now.
On the Custom Properties screen, click New.
This takes you to the Configuration screen for a new property (Figure 25).
In the Name field enter vbr.home and for the Value
field enter the fully qualified directory where Information Integration Content Edition is
installed. Click OK.
Figure 25. Setting properties
-
Save your changes change to the master configuration.
- Stop and restart the ESSearchServer instance under WebSphere Application Server V6.1 so
that all the changes related to the search application and search server take
effect (Figure 26).
Figure 26. Stop and restart the ESSearchServer
 |
Test content retrieval streaming without security enabled
You need to ensure that only the OmniFind Enterprise Edition collection that contains the Portal Document Manager data source is enabled for search.
This makes the test straightforward.
Follow these steps to test content retrieval streaming without security enabled:
- In the address field of a Web browser, enter the URL of the OmniFind Enterprise
Edition search application:
http://<hostname>/ESSearchApplication
Because security is not enabled, this takes you directly to the search screen.
- To initiate a search against the Portal Document
Manager data source, type a
search term in the Search for field and click Search.
Figure 27 shows an example of the search results that are returned.
Figure 27. Searching against Portal Document Manager
-
Click on one of the links in the search results to verify that you can
retrieve the document from the Portal Document Manager (Figure 28).
Figure 28. Document content returned
Verify that content retrieval streaming without security enabled works
You can verify that streaming worked by examining the detailed log generated by
the OmniFind Enterprise Edition search application and the SystemOut.log from
the portal server.
- Look at the ESSearchApplication.0.log file in the <OmniFind Node Root>\logs
directory.
At the bottom of the file you should see log entries similar to the sample shown in
Listing 1.
Listing 1. Sample entries from ESSearchApplication.0.log
Nov 2, 2008 4:22:35 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - mode: direct
Nov 2, 2008 4:22:35 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - jndiFactory:
Nov 2, 2008 4:22:35 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - jndiProvider:
Nov 2, 2008 4:22:35 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - userName: cjinwps
Nov 2, 2008 4:22:35 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - logging on to the repository
Nov 2, 2008 4:22:35 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - attempting to logon with the predefined id of cjinwps
Nov 2, 2008 4:22:36 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - logged on to repository: SharedPDMConnector
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - requesting page #: 1 as a stream
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - set response header [Content-Type]: application/pdf
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - set response header [Content-Disposition]: \
inline;filename="OmniFindEnterprise850_qsg_en.pdf"
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
INFO: writeFileToStream - returning content
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - logging off of repository
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
FINE: retrieveContentAsStream - freeing user instance
Nov 2, 2008 4:22:37 PM com.ibm.es.searchui.fetch.ESFetchServlet
INFO: doGet - returning
|
- On the portal server, look at the SystemOut.log file under the <WebSphere Portal
server install directory>\log directory.
You should see log entries similar to what is shown in Listing 2 (due to the length of the lines in the sample,
it is contained on a separate page).
 |
|  |