The supporting compiled jar files and standard encryption .jars are copied into the /opt/replication/libs/applibs subfolder.
Figure 4-12CThe applibs, jars, and libs subdirectories are built under /opt/replication
Figure 4-12DThe /opt/replication/libs/applibs subfolder .jar files
(base) [root@ECMUKDEMO6 libs]# ls
applibs other
(base) [root@ECMUKDEMO6 libs]# pwd
/opt/replication/libs
(base) [root@ECMUKDEMO6 libs]# cd ..
(base) [root@ECMUKDEMO6 replication]# ls
applibs jars libs logs
(base) [root@ECMUKDEMO6 replication]# cp /root/eclipse-workspace/AUDIT_CEReplicate/src/log4j.dtd .
(base) [root@ECMUKDEMO6 replication]# cp /root/eclipse-workspace/AUDIT_CEReplicate/src/log4j.xml .
(base) [root@ECMUKDEMO6 replication]# ls
applibs jars libs log4j.dtd log4j.xml logs
(base) [root@ECMUKDEMO6 replication]# chmod 775 log4j.*
(base) [root@ECMUKDEMO6 replication]# ls
applibs jars libs log4j.dtd log4j.xml logs
(base) [root@ECMUKDEMO6 replication]# cp /root/eclipse/java-2021-12/eclipse/fn_*.jar .
(base) [root@ECMUKDEMO6 replication]# ls
applibs fn_connection.jar fn_eventhandlers.jar jars log4j.dtd logs
fn_common.jar fn_connect.jar fn_utils.jar libs log4j.xml
(base) [root@ECMUKDEMO6 replication]# cd applibs
(base) [root@ECMUKDEMO6 applibs]# mv ../fn*.jar .
(base) [root@ECMUKDEMO6 applibs]# ls
fn_common.jar fn_connection.jar fn_connect.jar fn_eventhandlers.jar fn_utils.jar
The latest release of the apache codec jar can be downloaded from the following URL:
https://commons.apache.org/proper/commons-codec/download_codec.cgi
A Xerces Java library file can be downloaded from the zip file:
http://archive.apache.org/dist/xml/xerces-j/Xerces-J-bin.1.4.4.zip
(An import used in CEMigrateConfig.java code for XML parsing)
Figure 4-12EThe first run of the Replication.sh shell script (the CLASSPATH is echoed)
Figure 4-12FThe console.log file from the first run of the Replication.sh shell script
The end of the console.log shows the successful transfer of the folders and documents.
Figure 4-12GThe Replication program run statistics of the console.log file is shown
Figure 4-12HThe Replication program has successfully updated the start search date
Figure 4-12IThe AuditImportAuditDocs.log shows the details of imported documents
Figure 4-13The setup of the supporting file systems for the Replication program
Project Creation
The Eclipse New project, AUDIT_CEReplicate, is created.
Figure 4-14The File ➤ New ➤ Project menu option is selected for the New Project wizard
The Java Project type is selected.
Figure 4-15The Java Project is selected with the Eclipse Project wizard
A number of separate projects will be created for each custom utility .jar file we will reference.
Figure 4-16The Project Name, AUDIT_CEReplicate, is entered and the 1.8 JRE selected
Figure 4-17The parameters are set for the Java project, and Finish is clicked
Figure 4-18The Open Perspective command button is clicked for Java development
Figure 4-19The AUDIT_CEReplicate Project is now available for Java packages and code
A new Java package is created for the CEReplicate class.
Figure 4-20The right-mouse click is used to select the New ➤ Package menu option
Figure 4-21The Java package name, com.ibm.ce.rep.utils, is created by clicking Finish
Figure 4-22The CEReplicate Class is added to the com.ibm.ce.rep.utils package
Figure 4-23The CEReplicate class name is entered and the Finish command clicked
Leave a Reply