Business Components

By: aathishankaran Printer Friendly Format    

Business Components

Enterprise 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.

There are three kinds of enterprise beans:

·        Session beans

·        Entity beans

·        Message-driven beans.

A session bean represents a transient conversation with a client. When the client finishes executing, the session bean and its data are gone.

In 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.

A 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