By: aathishankaran Printer Friendly Format
beans running in the business tier handle business code, which is logic that
solves or meets the needs of a particular business domain such as banking,
retail, or finance. Figure shows how an enterprise bean receives data from
client programs, processes it (if necessary), and sends it to the enterprise
information system tier for storage. An enterprise bean also retrieves data from
storage, processes it (if necessary), and sends it back to the client program.
are three kinds of enterprise beans:
session bean represents a transient conversation with a client.
When the client finishes executing, the session bean and its data are gone.
contrast, an entity bean
represents persistent data stored in one row of a database table. If the client
terminates or if the server shuts down, the underlying services ensure that the
entity bean data is saved.
message-driven bean combines features of a session bean and a
Java Message Service ("JMS") message listener, allowing a business
component to receive JMS messages asynchronously.
Most Viewed Articles (in Java )
Latest Articles (in Java)
Comment on this tutorial
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews