NonStop SOAP for Java User's Manual

Using the Administration Tools
NonStop SOAP for Java User’s Manual523860-001
5-19
Deploying an Entity Bean
Deploying an Entity Bean
Table 5-3 deploys an entity bean called the AccountBean (CMP) which is a sample
provided with the NSEJB product. Type the following information in the form.
In the case of stateful session beans a call to a specific "create" method has to be
made before any other bean specific methods can be invoked.
Similarly, in the case of entity beans, either a call to a specific "create" or "find" method
has to be made before any other bean specific methods can be invoked.
As an example, we show the request response messages for two consecutive client
SOAP messages to a stateful session bean (The CartBean sample discussed
previously).
Table 5-3. Deploying an Entity Bean
ID urn:CMPAccount
Scope Application
Methods debit credit getBalance create findByPrimaryKey
Provider
Type
User-Defined
FULL
Class
Name
org.apache.soap.providers.EntityNSEJBProvider
Number
of
Options
4
Key Value
FullHomeInterfaceName AccountHome
JNDIName CMPAccountSample
ContextProviderURL corbaloc://ip-address-of-NSK-system:ILSD_port
FullContextFactoryName com.tandem.nsdom.jndi.CosNaming.CNContextFactory
Java
Provider
Provider Class
Account
Static No
Note. For the SOAP-EJB call to work correctly on the server side, the EJB being exposed as a
Web service should be deployed and running (See the NonStop EJB Users Guide.)
The .jar file that contains the deployed EJB should be added to the location <Webserver-
location>/conf/soap4java.config file. After the .jar file is added to the soap4java.config file, the
iTP WebServer must be restarted.