Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Invoking webMethods Services From an EJB | Overview | Sample EJB Application
 
Sample EJB Application
To use the sample EJB application, download it from the Software AG TECHcommunity website and extract the downloaded zip file to the Integration Server_directory \packages\WmEJBAdapter\templates\EJBToWebmSamples directory. The sample EJB application contains EJB source code that demonstrates the procedure for invoking services running on Integration Server from within an EJB. The sample EJB application must be installed on your application server in order to demonstrate this facility.
The sample EJB application includes the following files:
*Source code for a simple stateless session EJB (HelloBean) that talks to a simple stand-alone Java service that is part of the adapter (see Sample webMethods Java Service).
*EJB deployment descriptor files for the HelloBean EJB, one set for each supported application server.
*Source code for a simple EJB client (HelloEJBClient) designed to run on the application server and used to invoke HelloBean.
*JNDI properties file needed by HelloEJBClient, one for each supported application server.
*Ant build scripts used to compile HelloBean and HelloEJBClient, deploy HelloBean, and run HelloEJBClient. There is one build script for each supported application server.
*Readme file describing how to build the sample EJB and the EJB client, deploy the sample EJB, and run the EJB client. There is one readme file for each supported application server (ReadMeappserver.txt).