[5 Mar 2012 | One Comment | 4,793 views]
  • The EJB 3.0 local client view is based on a plain old java interface (POJI) called a local business interface.
    • A local interface defines the business methods that are exposed to the client and that are implemented on the bean

Read more…

[5 Mar 2012 | No Comment | 1,296 views]
  • Only Stateless session beans and Singleton session beans may have web service clients.
  • To provide a webservice endpoint interface view for the client, the business interface of the bean should be annotated with @WebService.

Read more…

[5 Mar 2012 | No Comment | 1,669 views]
  • A local client is a client that is in the same JVM with the session bean that provides the local client view.
    • For example, EJB deployed in JBoss container and servlet client deployed in the SAME JBoss container.
  • A local

Read more…

[5 Mar 2012 | No Comment | 1,856 views]
  • A remote client of a session bean can be another enterprise bean deployed in the same or different container; or it can be an arbitrary Java program, such as an application, applet, or servlet.
    • For example, EJB deployed in JBoss

Read more…

[5 Mar 2012 | No Comment | 1,613 views]
  • For a client, a session object is a non-persistent object that implements some business logic running on the server.
  • A client never directly accesses instances of the session bean’s class.
  • A client accesses a session object through the session bean’s

Read more…

[5 Mar 2012 | One Comment | 4,309 views]
  • There must be atleast one business interface for a session bean.
    • The interface can be marked as @Remote, @Local or @WebService.
    • EJB 3.1 provides a no-interface view for the client in which the bean is not required to implement the

Read more…

[5 Mar 2012 | No Comment | 2,081 views]

Stateful session beans are appropriate if any of the following conditions are true.

  • The bean’s state represents the interaction between the bean and a specific client.
  • The bean needs to hold information about the client across method invocations.
  • The bean

Read more…

[5 Mar 2012 | No Comment | 2,204 views]

A session bean may be either:

  1. Stateless—the session bean instances contain no conversational state between methods; any instance can be used for any client.
  2. Stateful—the session bean instances contain conversational state which must be retained across methods and

Read more…

[5 Mar 2012 | No Comment | 2,396 views]

A Session Bean implements and encapsulates a business task that can be invoked programmatically by a client over local, remote, or web service client views.

The session bean performs work (such as calculations or database access) for its client, shielding Read more…

[5 Mar 2012 | One Comment | 4,996 views]

Environment Used

  • Java SE 6 Update 30
  • Ubuntu Linux version 11.10 32-bit

Downloading Java Development Kit (JDK):

You can download latest version of JDK from this location

We have used Java SE 6 Update 30. Click on the download Read more…