Enterprise Bean Samples

Enterprise beans are Java classes written to the Enterprise JavaBean architecture. These EJB samples are a good place to start learning about enterprise beans. They demonstrate basic coding techniques and were all created with simplicity in mind.

Hello: very simple stateless session bean

Increment: very simple persistent entity bean

Account: persistent entity bean that models banking accounts

Transfer: stateless session bean that models the transfer of funds between banking accounts

 


Deploying enterprise beans:

Before you can run any of the sample enterprise beans, you must first deploy them. Deployment identifies the beans to the WebSphere EJB server and establishes the connections needed to implement them.

You can deploy the samples, using the WebSphere Administrative Console.


For more information:

For detailed information on how to create, compile, and deploy your own enterprise beans, refer to the WebSphere Application Server's EJB documentation.

And, for a quick step-by-step guide on how to compile and deploy the sample source files using an automated process, refer to Compile and Deploy the Samples. (This method does not use the WebSphere Administrative Console.)