...
- JNDI Properties: Allows you to configure the properties for the remote directory from a JNDI Query. The following options are available:
- Initial Context Factory: Specifies the context factory, such as
org.jnp.interfaces.NamingContextFactory
. - Provider URL: Specifies the location of the JNDI query, such as
cheetah.parasoft.com
. Also specify the User and Password. Object Name: Specifies the name of the object in the JNDI directory, such as
ejb/CartHomeRemote
. This object should be an instance of the class that you enter in the Class field of the EJB Remote Object panel. You can find the JNDI names of the EJB objects bound to the JNDI directory in your J2EE server configuration.Note title The Initial Context Factory Class Should be Included in SOAtest's Classpath For more information on adding class files to SOAtest, see System Properties Settings. - EJB Remote Object: Allows you to configure the properties for invoking a remote method for the EJB Remote Object. The following options are available:
Class: Specifies the class of the Object that is expected to be returned from either the JNDI query or the Object Data Bank. For instance:
.com.parasoft.soatest
bookstore.cart.CartRemote.
If the class is in SOAtest's classpath, the Method selection box will be automatically populated with public methods of this class.Method: Specifies the method you would like to invoke. If the class specified in the Class field is found on SOAtest's classpath, the Method combo box will be automatically filled with available methods.
- Method Arguments: If the selected method takes arguments, the Method Arguments sub panel will prompt you to specify the Input Type and Parameter Input for each of the arguments of the remote method.
- For Java primitive types (java.lang.String and java.util.Date), the following input types are available:
- Literal: Specifies the input value as a string. If for example the Parameter Type is Java primitive type
int
, the following will be a valid input10
,12345
. For Java float type:7.62
,105.3
, etc. - Parameterized: This input will be available if there is at least one Data Source “visible” to this tool. Select the desired data source column as input.
- Scripted: Specifies the parameter as a return value of a custom method.
- Literal: Specifies the input value as a string. If for example the Parameter Type is Java primitive type
- For the rest of the Java types, the following input types are available
- Interpreted: Allows use of tabular input (CSV, Excel, etc.) to instantiate a Java Object that will be used as a remote method parameter. For more information, see Using Interpreted Data Sources.
- Scripted: Specifies the parameter as a return value of a custom method.
- For Java primitive types (java.lang.String and java.util.Date), the following input types are available:
...
Use the Sun Initial Context Factory (
com.sun.jndi.cosnaming.CNCtxFactory
): This setting should be configured in the EJB Client's JNDI properties. This setting requires thatSun's j2ee.jar
is on the SOAtest classpath. This.jar
file is available from the Oracle Java site. For more information on adding class files to SOAtest, see System Properties Settings.- In the EJB Clients's JNDI properties, use a provider URL in the form of
corbaloc:iiop:WAS:2809
whereWAS
is the location of your WebSphere Application Server.(for example,corbaloc:iiop:bison:2809
) - In the EJB Client's JNDI properties, specify the Object Name in the following format:
cell/nodes/[node]/servers/[server]/YOUR_EJB_OBJECT_NAME
(for example,cell/nodes/bisonNode01/servers/server1/ejb/BasicCalculator
)
...