View RSS Feed

EJB

Enterprise Java Beans (EJB) tutorials. Focusing on EJB 3.0 (EJB3) and above.

  1. When to use Session Beans

    by
    EJB
    , 01-02-2012 at 06:57 PM
    Just one client can access the bean instance at any given time. There exists no persistency in case of state of the bean. They just exist for shorter time duration.

    State full session beans are suitable whenever:

    • The state of bean presents the interaction b/w a specific client and the bean.
    • The bean requires retention of certain information regarding the client, across method invocations.
    • There occurs the mediation b/w other application components and client
    ...
    Tags: session bean Add / Edit Tags
    Categories
    Session Bean , EJB Bean
  2. Stateful Session Bean

    by
    EJB
    , 01-02-2012 at 06:52 PM
    A stateful session bean is an enterprise bean (EJB component) that serves to be a client’s server side extension. It is created by one client and hence it works for just that client till the drop takes place in client connection or removal of the bean takes place explicitly. The stateful Bean (EJB Component) implements the interface javax.ejb.SessionBean and deploys to the “stateful” which is the declarative attribute. They are called stateful as conversational state is being maintained by them ...

    Updated 01-14-2012 at 07:12 PM by EJB

    Categories
    Session Bean
  3. What is a Session Bean?

    by
    EJB
    , 01-02-2012 at 06:49 PM
    Inside J2EE server, single client is presented in a session bean. It is considered as a non persistent object which makes the implementation of other business logics that run at server. Session beans are not able to survive the shut down of the system.

    Two types of session beans are there:

    • Stateless session beans (By multiple EJB clients, each session bean could be reused)
    • Stateful session beans (every session bean is linked to just one EJB client)
    Tags: session bean Add / Edit Tags
    Categories
    Session Bean