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:
![*](chapterTOC_bullet.png)
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).
![*](chapterTOC_bullet.png)
EJB deployment descriptor files for the HelloBean EJB, one set for each supported application server.
![*](chapterTOC_bullet.png)
Source code for a simple EJB client (HelloEJBClient) designed to run on the application server and used to invoke HelloBean.
![*](chapterTOC_bullet.png)
JNDI properties file needed by HelloEJBClient, one for each supported application server.
![*](chapterTOC_bullet.png)
Ant build scripts used to compile HelloBean and HelloEJBClient, deploy HelloBean, and run HelloEJBClient. There is one build script for each supported application server.
![*](chapterTOC_bullet.png)
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 (ReadMe
appserver.txt).