Adding the Supporting Java Projects- A Replication Java Program for IBM FileNet Object Stores

The four supporting projects, FileNetConnection, FN_Connect, AUDIT_Common, and AUDIT_Utils, are run as follows to create the supporting .jar files (as defined in Table 4-1).

In the AUDIT_CEReplicate project source folder, we first create a config subfolder.

Figure 4-42The Config folder is created for the config.xml file

The config.xml file is created to hold the Replication program parameters for the source and target Object Store names, the administrator name and encrypted password for the IBM FileNet content engine system account, and the included users and group security for access to the replicated folders and documents.

Figure 4-43The Config.xml file is created – note later changed to config.xml (lowercase)

The supporting project jar files are generated as shown in Table 4-1.

Figure 4-44The AUDIT_Common project is selected to export the fn_common.jar file

Figure 4-45The Java JAR file export option is selected

Figure 4-46The fn_common.jar export path is selected

Figure 4-47The AUDIT_Common.jardesc file is selected for build, to use for faster rebuilds

Figure 4-48The jar MANIFEST.MF file is selected for creation and Finish clicked

Figure 4-49The Details command button displays the compile warnings found

The Java JAR Build XML, AUDIT_Common.jardesc, is as follows:

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>

<jardesc>

<jar path=”/root/eclipse/java-2021-12/eclipse/fn_common.jar”/>

<options buildIfNeeded=”true” compress=”true” descriptionLocation=”/AUDIT_Common/src/AUDIT_Common.jardesc” exportErrors=”true” exportWarnings=”true” includeDirectoryEntries=”false” overwrite=”false” saveDescription=”true” storeRefactorings=”false” useSourceFolders=”false”/>

<storedRefactorings deprecationInfo=”true” structuralOnly=”false”/>

<selectedProjects/>

<manifest generateManifest=”true” manifestLocation=”/AUDIT_Common/bin/MANIFEST.MF” manifestVersion=”1.0″ reuseManifest=”false” saveManifest=”true” usesManifest=”true”>

<sealing sealJar=”false”>

<packagesToSeal/>

<packagesToUnSeal/>

</sealing>

</manifest>

<selectedElements exportClassFiles=”true” exportJavaFiles=”false” exportOutputFolder=”false”>

<file path=”/AUDIT_Common/.classpath”/>

<file path=”/AUDIT_Common/.project”/>

<javaElement handleIdentifier=”=AUDIT_Common/src”/>

</selectedElements>

</jardesc>

Figure 4-50The fn_utils.jar export path is selected

The Java JAR Build XML, AUDIT_Utils.jardesc, for the fn_utils.jar is as follows:

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>

<jardesc>

<jar path=”/root/eclipse/java-2021-12/eclipse/fn_utils.jar”/>

<options buildIfNeeded=”true” compress=”true” descriptionLocation=”/AUDIT_Utils/src/AUDIT_Utils.jardesc” exportErrors=”true” exportWarnings=”true” includeDirectoryEntries=”false” overwrite=”false” saveDescription=”true” storeRefactorings=”false” useSourceFolders=”false”/>

<storedRefactorings deprecationInfo=”true” structuralOnly=”false”/>

<selectedProjects/>

<manifest generateManifest=”true” manifestLocation=”/AUDIT_Utils/bin/MANIFEST.MF” manifestVersion=”1.0″ reuseManifest=”false” saveManifest=”true” usesManifest=”true”>

<sealing sealJar=”false”>

<packagesToSeal/>

<packagesToUnSeal/>

</sealing>

</manifest>

<selectedElements exportClassFiles=”true” exportJavaFiles=”false” exportOutputFolder=”false”>

<file path=”/AUDIT_Utils/.classpath”/>

<file path=”/AUDIT_Utils/.project”/>

<javaElement handleIdentifier=”=AUDIT_Utils/src”/>

</selectedElements>

</jardesc>

Figure 4-51The fn_connect.jar export path is selected

The Java JAR Build XML, FN_Connect.jardesc, for the fn_connect.jar is as follows:

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>

<jardesc>

<jar path=”/root/eclipse/java-2021-12/eclipse/fn_connect.jar”/>

<options buildIfNeeded=”true” compress=”true” descriptionLocation=”/FN_Connect/src/FN_Connect.jardesc” exportErrors=”true” exportWarnings=”true” includeDirectoryEntries=”false” overwrite=”false” saveDescription=”true” storeRefactorings=”false” useSourceFolders=”false”/>

<storedRefactorings deprecationInfo=”true” structuralOnly=”false”/>

<selectedProjects/>

<manifest generateManifest=”true” manifestLocation=”/FN_Connect/bin/MANIFEST.MF” manifestVersion=”1.0″ reuseManifest=”false” saveManifest=”true” usesManifest=”true”>

<sealing sealJar=”false”>

<packagesToSeal/>

<packagesToUnSeal/>

</sealing>

</manifest>

<selectedElements exportClassFiles=”true” exportJavaFiles=”false” exportOutputFolder=”false”>

<file path=”/FN_Connect/.project”/>

<javaElement handleIdentifier=”=FN_Connect/src”/>

<file path=”/FN_Connect/.classpath”/>

</selectedElements>

</jardesc>

Figure 4-52The generated fn_connect.jar supporting jar file for the Replication program

The supporting jar file fn_connect.jar is added to the Java Build Path of the FileNet fn_connection.jar creation project FileNetConnection.

Figure 4-53The generated fn_connect.jar is added to the FileNetConnection project

Figure 4-54The generated fn_common.jar file is selected from the eclipse root path

Figure 4-55The generated fn_common.jar is added to the FileNetConnection project

Figure 4-56The fn_connection.jar export path is selected

Figure 4-57The fn_connection.jar export MANIFEST.MF file path is selected

The Java JAR Build XML, FileNetConnection.jardesc, is as follows:

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>

<jardesc>

<jar path=”/root/eclipse/java-2021-12/eclipse/fn_connection.jar”/>

<options buildIfNeeded=”true” compress=”true” descriptionLocation=”/FileNetConnection/src/FileNetConnection.jardesc” exportErrors=”true” exportWarnings=”true” includeDirectoryEntries=”false” overwrite=”false” saveDescription=”true” storeRefactorings=”false” useSourceFolders=”false”/>

<storedRefactorings deprecationInfo=”true” structuralOnly=”false”/>

<selectedProjects/>

<manifest generateManifest=”true” manifestLocation=”/FileNetConnection/bin/MANIFEST.MF” manifestVersion=”1.0″ reuseManifest=”false” saveManifest=”true” usesManifest=”true”>

<sealing sealJar=”false”>

<packagesToSeal/>

<packagesToUnSeal/>

</sealing>

</manifest>

<selectedElements exportClassFiles=”true” exportJavaFiles=”false” exportOutputFolder=”false”>

<file path=”/FileNetConnection/.project”/>

<file path=”/FileNetConnection/.classpath”/>

<javaElement handleIdentifier=”=FileNetConnection/src”/>

</selectedElements>

</jardesc>

Leave a Reply

Your email address will not be published. Required fields are marked *