Recompiling the RMI Stub Files
The Remote Method Invocation (RMI) files shipped with Maximo are often incomplete (particularly in the case of Maximo 5.x). This can cause problems performing certain functions through DataSplice. Fortunately, these can be easily recompiled using a script provided by the Plug-in Installer.
- On the computer where the DataSplice Server and the plug-in are installed, open Windows Explorer and browse to C:\Program Files\DataSplice3\scripts. Note: If DataSplice was installed to a different location, use that file path instead of C:\Program Files\
- Copy the following files:
- DataSplice_MAXIMO_rmic.bat
- DataSplice_MAXIMO_rmic.xml
- DataSplice_MAXIMO_rmic_folder.bat
- Paste the files directly into the root directory on the Maximo server computer where the \psdi folder resides.
- The default for Maximo 5.x is C:\MAXIMO. (This may or may not be the same physical server as the one housing the DataSplice Server and Plug-in.)
- The default for Maximo 6.x is C:\Maximo\Applications\maximo\businessobjects\classes.
- After the files have been successfully copied into the destination directory, open DataSplice_MAXIMO_rmic.bat with a text editor to examine its contents.
rem by default MAX_HOME for MAXIMO 5 is c:\maximo\
rem by default MAX_HOME for MAXIMO 6 is c:\maximo\applications\maximo\businessobjects\classes\
rem This needs a trailing slash
rem set MAX_HOME=c:\maximo\
set MAX_HOME=c:\maximo\applications\maximo\businessobjects\classes\
rem for MAXIMO 5
rem set JAVA_HOME=c:\bea\jdk131_06\jre
rem set CLASSPATH=%MAX_HOME%;%JAVA_HOME%\..\lib\tools.jar
rem for MAXIMO 6
set JAVA_HOME=c:\bea\jdk142_05
set CLASSPATH=%MAX_HOME%;%JAVA_HOME%\lib\tools.jar
rem for MAXIMO 5
rem set ANT_HOME=c:\maximo\ant1.5
rem for MAXIMO 6
set ANT_HOME=c:\maximo\tools\ant
set ANT_OPTS=-Xmx512m
set BUILD_FOLDER_COMMAND=DataSplice_MAXIMO_rmic_folder.bat
if not "%1" == "clean" goto do_build
echo Deleting existing RMI stub files to ensure a clean build
for /r %MAX_HOME%\psdi %%d in (*_Stub.class) do del %%d
:do_build
echo do the build!
echo Building RMI stub files for each folder in the MAXIMO root
for /d /r %MAX_HOME%\psdi %%d in (*) do call %BUILD_FOLDER_COMMAND% %%d
- If the Maximo directory is different than the default, modify the
MAX_HOMEvariable accordingly. - If the Java VM path is different than the default, modify the
JAVA_HOMEvariable accordingly. - Launch the DataSplice_MAXIMO_rmic.bat script by double-clicking it in Windows Explorer or invoking it via a command line window. The script should begin to run. This may take quite a while, because the stub files for hundreds of classes will be inspected, and potentially recompiled. If a class is
skipped, a notification will be provided. Please allow the script to run to completion. - If any errors occur, verify that the
rmicexecutable is in the current path, and rerun the script.
Last modified 2008-07-16 02:20 PM