Hello Sample


Question:
Why create a 'Hello World' enterprise bean?

Answer: To provide a very simple enterprise bean. You can use it as a starting point for learning about enterprise beans and you can also use it to verify your EJB server.

Run this sample

Show the source files


Reminder: Before you can run any of the sample enterprise beans, you must deploy them.


How this sample works:

The sample has:

  • An input form to invoke the servlet
  • A Java servlet, HelloServlet, that accesses the Hello enterprise bean and returns the formatted HTML
  • An enterprise bean, Hello, that returns a string

 


How to use this sample:

Test your EJB server by accessing the Hello enterprise bean. Because this bean does NO processing, it provides a quick and easy way to see if your EJB server is functioning.