Skip to content

DS Archive Support Website

Sections
Personal tools
You are here: Home » Product Manuals DS 3.x » DataSplice 3.1 Basic Administration » Recompiling Maximo RMI Stub Files

Recompiling Maximo RMI Stub Files

This document covers using the update script to recompile the stub classes that enable DataSplice to communicate with the MBO objects.

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.1\Server\Resources\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 and 7.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.
echo off

echo off

rem by default MAX_HOME for MAXIMO 5 is c:\maximo\
rem by default MAX_HOME for MAXIMO 6 & 7 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

rem for MAXIMO 6
rem set JAVA_HOME=c:\bea\jdk142_05

rem for MAXIMO 7
set JAVA_HOME=c:\bea\jdk150_12

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 & 7
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% %%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% %%d in (*) do call %BUILD_FOLDER_COMMAND% %%d
  • If the Maximo directory is different than the default, modify the MAX_HOME variable accordingly.
  • If the Java VM path is different than the default, modify the JAVA_HOME variable accordingly.
  • If the Ant path is different than the default, modify the ANT_HOME variable 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. Please allow the script to run to completion.
  • If any errors occur, verify that the rmic executable is in the current path, and rerun the script.

 

 

Last modified 2010-11-01 12:50 PM
 

Powered by Plone

This site conforms to the following standards: