Previous Topic: Access using EJBNext Topic: Testing your ICT Installation


Access using RMI

For custom Java applications, you can modify the source code for your application to integrate with ICT. ICT testing can be performed by binding the LISARemoteObjectManagerRMIServer remote Server object to the RMI registry. This object accepts connections from DevTest Workstation to perform ICT.

For example, the following code can be included in your custom application to bind the ICT remote object Server through RMI:

LISARemoteObjectManagerRMIServer remoteObjectManagerServer = new LISARemoteObjectManagerRMIServer();Registry registry = LocateRegistry.createRegistry(port);registry.bind("LISARemoteObjectManager", remoteObjectManagerServer); 

Note: The RMI name "LISARemoteObjectManager" must be entered exactly as-is for ICT to work correctly.

DevTest Workstation attempts to connect to your application through the RMI URL rmi://hostname:port/LISARemoteObjectManager.

The hostname and port are variables and can be changed in your test application and configured in DevTest Workstation.

An example server application can be found in $LISA/incontainer/rmi/example. Using a console window, you can run the example server by executing the command "java -jar ExampleServer.jar".

Note: For this command to run successfully, you must be running it from the $LISA/incontainer/rmi/example directory. See the sample source code in the $LISA/incontainer/rmi/example/src directory.