Borland Software Water System silk perforator java explorer 2006 release 2 Manual De Usuario

Descargar
Página de 110
8
SilkPerformer Java Explorer User Guide
I
NTRODUCTION
Sample Applications for SilkPerformer SOA Edition
Java RMI Samples
Four Java RMI sample applications are included:
A simple RMI sample application that is used in conjunction with the 
sample Java Framework project Samples/Java Framework/RMI (see the 
following section, Sample Test Projects). To start the "ServiceHello" 
RMI Server, go to: Start/Programs/Borland/SilkPerformer 2006 R2/
Sample Applications/Java Samples/RMI Sample - SayHello
 or  Start/
Programs/Borland/SilkPerformer SOA Edition 2006 R2/Sample 
Applications/Java Samples/RMI Sample - SayHello
.
Two simple RMI sample applications can be found at 
<SilkPerformer installpath>\Java Explorer\SampleApps\
A more complex RMI sample that uses RMI over IIOP is also available. 
For details on setting up this sample, go to: Start/Programs/Borland/
SilkPerformer 2006 R2/Sample Applications/Java Samples/Product 
Manager
 or Start/Programs/Borland/SilkPerformer SOA Edition 2006 
R2/Sample Applications/Java Samples/Product Manager
. This sample 
can be used with the sample test project that is available at Samples/Java 
Framework/RMI/IIOP 
(see the following section, Sample Test Projects).
Testing RMI
Java RMI can be done using two different protocols, both of which are 
supported by Java Explorer: 
Java Remote Method Protocol (JRMP) 
RMI over IIOP 
 
RMI Testing with JRMP 
A simple example server can be found at: 
<SilkPerformer installpath>\Java Explorer\SampleApps 
Launch the batch file called LaunchRemoteServer.cmd to start the sample server. 
Then use Java Explorer’s 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: <SilkPerformer installpath>\Java 
Explorer\SampleApps\lib\sampleRmi.jar