Enterprise Java Beans


Enterprise Java Beans is a framework that allows one to develop Enterprise applications more easily using Java Enterprise Edition. It does this by using standard components. These components specify how an application works. This is usually called business logic.

There are different kinds of Beans:

  • Session beans help to implement the main business logic. They are either Stateful (remembers things), Stateless (remembers nothing) or Singleton (only one of those exists). An example of a session bean might be the piece of code that tells how to store items in a database.
  • Message-driven beans allow a system to work asynchronously. They help to make different systems talk to each other by sending messages. Sometimes they are used to talk to legacy systems.

Other websites