Borland Software Water System silk perforator java explorer 2006 release 2 Manuel D’Utilisation

Page de 110
64
SilkPerformer Java Explorer User Guide
3  S
ETTING
 U
P
 T
ESTS
Testing RMI
The getProductsByName method requires a string as parameter. ’*’ is used as a 
wildcard to get all products.
Testing RMI
Java RMI can be achieved using two different protocols, both of which are 
supported by Java Explorer: 
RMI over IIOP (see 
)
Java Remote Method Protocol (JRMP) (see the following section)
Note  Sample RMI and RMI/IIOP projects are available. See 
RMI Testing with JRMP 
The main difference between testing RMI with JRMP and testing RMI over 
IIOP is that with JRMP you need to connect to an RMI registry. 
Procedure  To test RMI with JRMP:
1
Click the Start Here button to launch Java Explorer’s Load File Wizard.
Alternative  You can also right-click Remote Objects in the Classes 
pane and select New RMI from the context menu to start the RMI 
Wizard
 directly. Proceed with step 3.
2
Select the RMI radio button and click Next. 
3
The RMI Wizard dialog appears. Enter RMI registry settings and a 
classpath where the RMI interfaces for the client can be found.