Types of Java Beans

There are three types of beans in java:

1. Session Beans, it is also sub divide into two forms

Stateless Session beans

Stateful Session Beans

2. Entity Beans

3. Message Driven Beans or they are also called Message Beans.

Now I will explain them one by one:

Session Bean is created by a customer and its duration is only for the signal client server session. The function performed by this bean is calculations or database access, for the client. This bean can be transactional, because it is not recoverable and due to this may a system crash can occur. Its object is to manage its own unrelenting data.The stateless Session Beans is distributed object which has no connection with informal state; only allow parallel access to beans.Now the Stateful Session Bean has a connection with informal state, but its access is very limited to the customer.The second types are called Entity Bean and its function is to database the unrelenting data. It is recognized by a main key, if the container which is hosted by entity bean crashes, it will destroy the remote reference.Message bean is similar to session bean, except it responds to java message service.

2 Comments

  1. Thato says:

    Three types of beans that i know in java are
    Control JavaBeans-Which are used to create GUI components that can be plugged into any application. An animated button control is an example of a control JavaBean.
    Container JavaBeans -these are uesd to hold other java beans.
    Invisible Runtime Java Beans – These ar used to create components that perorm a specific task in the background of an of an application.

    What do you think about these???

  2. sarveen says:

    good sare you

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s