NonStop SOAP for Java User's Manual

Using the Administration Tools
NonStop SOAP for Java User’s Manual523860-001
5-5
Using EJB Mode
Using EJB Mode
In EJB mode, the NskSoapManager tool assists you in exposing and deploying the
methods of multiple NSEJBs contained in a .jar file. Given the location of the NSEJB
.jar file name, NskSoapManager generates a SOAP deployment descriptor and a
WSDL file as an output for each EJB selected to be deployed from the .jar file.
NskSoapManager can register the service with the SOAP server.
1. Use these commands to start the NskSoapManager tool in EJB mode:
a. Enter the name and location of the NSEJB .jar file.
NskSoapManager expects two XML files to be present within the NSEJB .jar
file:
META-INF/ejbTandem-jar.xml
META-INF/ejb-jar.xml
These files include the EJB module packaged into JAR files, with a deployment
descriptor(ejb-jar.xml) in the META-INF directory of the JAR file.
If the .jar file entered does not comply with the NSEJB's .jar file standards, an
error is generated and the program is terminated. Errors can result if an XML
file is missing in the .jar file, the bean specification is incomplete, or a particular
bean property is not present within an.xml file.
However, if the .jar file complies with the .jar file standards, a list of the beans
present is displayed.
2. Select which beans should be deployed. The beans are numbered from [0]
forward. You can select the beans that should be deployed by entering the
numbers separated by a comma or by selecting a range.
For example, to specify beans from 0-15, but not including 1,8, and 13, you could
enter the following:
0,3,4-7,9-12,14
Note. Before starting the NskSoapManager tool, verify that you have sourced the env.sh file
located in the /usr/tandem/nssoap/T2764V10/etc directory.
OSS: cd usr/tandem/nssoap/t2764V10/bin
OSS: ./soapMgr -j EJBJarFile.jar
Note. Specifying an invalid file name ends the program. However, if you enter nothing, you are
given an option to retry or quit the program.
Here are the EJBs present in
/usr/tandem/nsejb/ejbsamples/slotmachine/slotDeploy.jar:
EJB[0] : ComputationEngineBean
EJB[1] : PlayerSessionBean
EJB[2] : PlayerBean
EJB[3] : MachineBean