user manual

SilkPerformer Java Explorer User Guide 49
3 S
ETTING UP TESTS
Enterprise JavaBeans & RMI Over IIOP
Enterprise JavaBeans & RMI Over IIOP
When testing components such as EJBs or other remote components, you can’t
use HTTP traffic when the application expects RMI or RMI over IIOP traffic.
To communicate with the application SilkPerformer must invoke a Java client
that generates the appropriate protocols that can be used to approach the
application’s interface.
Working with EJBs
Developed by Sun Microsystems, Enterprise JavaBeans is a specification for
developing scalable, server-side, multi-user enterprise applications.
Testing an EJB with Java Explorer involves three main steps:
Connecting to the Java Naming Service (JNDI)
Selecting an EJB Home object that is registered at the Naming Service
and can be used as a factory object
Creating the EJB on the application server
Procedure To test an EJB:
1 Click the Start here button on the Workflow bar to open the Load File
Wizard.
Alternative You can also right-click Remote Objects in the Classes
pane and select New EJB from the pop-up menu to start the EJB
Wizard directly. Proceed with step 3.
2 Select the Enterprise JavaBeans / RMI over IIOP radio button and click
Next.
3 On the Connect to Naming Service dialog, select the application server
vendor (if available) from the drop-down Server list.
Note The entries in the list work as a template that pre-configures
other settings (initial context factory, protocol, and port) with default
values. See “Vendor-specific JNDI Settings” for details regarding
configuration of specific application server types.
4 In the Factory field, specify the context factory of the naming service.
5 Using the Host fields, designate the URL where the naming service
provider is to be hosted.