IBM Content Integrator, Version 8.6

Configuring Content Integrator to use the Integration API and examples

Before you can work with the Integration API, the IBM® Content Integrator must be installed and correctly configured. You must set up a minimal configuration of access services and at least one connector.

When you run Content Integrator examples, your Java class path must be set to include the appropriate Content Integrator JAR file. As an example, the client application needs to be able to locate the following JAR file:

vbr.jar
This JAR file includes the Integration API and other supporting classes

The client application loads the configuration according to two Java variables:

Variable Required or Optional Description
vbr.home Optional When set, loads the configuration from the config.xml file in the specified directory. Example: Dvbr.home="%VBR_HOME%"
vbr.as.direct.rmi.urls Optional When set, loads the configuration from the configuration server specified by one or more URLs. For fail-over purposes you can specify multiple comma-separated URLs. Example: -Dvbr.as.direct.rmi.urls="rmi://host1:1250/ConfigurationServer, rmi://host2:1250/ConfigurationServer.

The following commands show the use of the standard environment variables that are defined in ICI_HOME\bin\config.bat where ICI_HOME is theContent Integrator installation directory:

SET PATH=%JAVA_HOME%\bin;%PATH%;%VBR_HOME%\combridge\bin

set VBR_CLASSPATH=%VBR_HOME%\docs\examples\java
set VBR_CLASSPATH=%VBR_CLASSPATH%;%VBR_HOME%\docs\examples\wsapi\java
set VBR_CLASSPATH=%VBR_CLASSPATH%;%WAS_HOME%\Properties

rem Set the VBR_CLASSPATH environment variable
set lcp=
for %%i in ("%VBR_HOME%\lib\*.jar") do call "%VBR_HOME%\bin\lcp.bat" "%%i"
for %%i in ("%VBR_HOME%\lib\*.zip") do call "%VBR_HOME%\bin\lcp.bat" "%%i"
set lcp=%lcp:"=%
set VBR_CLASSPATH=%VBR_CLASSPATH%;%lcp%

Alternatively, you can use the batch file ICI_HOME\bin\run_sample.bat:

run_sample commandline.RepoTest MyRepository MyUserId MyPassword

You can specify the time zone context of a connector's date and time. The getTimeZone method returns the time zone context for a connector's date and time values. A default implementation is provided in BaseBridge object that returns the configured time zone for a connector, or the time zone of the connector's JVM if the administrator has specified the default time zone in the configuration. Various classes include methods for formatting and parsing dates and times, and for retrieving times in different time zones.



Feedback

Last updated: June 2011


© Copyright IBM Corporation 2011. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)