This sample demonstrates injection of an EJB into a servlet. The application consists of a servlet and stateless session bean. The servlet uses annotations to inject the stateless session bean, and then performs a call on the hello method of the bean.
This sample can be installed onto runtime versions 8.5.5.0 and later.
To run the EJBSample application:
java -jar EJBSample.jar
bin
directory in the Liberty profile installation:
server run EJBSample
CWWKZ0001I: Application EJBSample started in XX.XX seconds.
For further information and resources for developers using IBM WebSphere Application Server, please visit wasdev.net.