Two Java RMI sample applications are included:
A simple RMI sample application that is used in conjunction with the sample Java Framework project (<public user documents>\Silk Performer 20.0\Samples\JavaFramework\RMI).
To start the ServiceHello RMI Server, go to:
.Java RMI can be achieved using two different protocols, both of which are supported by Java Explorer:
A simple example server can be found at <public user documents>\Silk Performer 20.0\SampleApps\Java.
Launch the batch file LaunchRemoteServer.cmd to start the sample server. Then use the Java Explorer Start Here Wizard to begin testing RMI objects. Select RMI and click Next.
The next dialog asks for the RMI registry settings and a classpath where the RMI interfaces for the client can be found. Here are the settings to be used for this example:
Host: localhost
Port: 1099
Client Stub Class: <public user documents>\Silk Performer 20.0\SampleApps\Java\Lib\sampleRmi.jar.
A simple example server can be found at: <public user documents>\Silk Performer 20.0\SampleApps\Java.
Launch the batch file LaunchRemoteServerRmiOverIiop.cmd to start the sample server.
Use the Java Explorer Start Here Wizard to begin testing RMI objects. Select Enterprise JavaBeans/RMI over IIOP and click Next.
The next step asks for the JNDI settings and a classpath where the RMI interfaces for the client can be found. Here are the settings to be provided for this example:
Server: Sun J2EE Server
Factory: com.sun.jndi.cosnaming.CNCtxFactory
Provider URL: iiop://localhost:1050
Stub Class: Click Browse and add the following jar file: <public user documents>\Silk Performer 20.0\SampleApps\Java\Lib\sampleRmiOverIiop.jar.