EJB 3.0 Tutorial Home

AddThis Social Bookmark Button

What we discussed in last session is local interface used in same JVM and Remote means Different JVM.
So in this session we will discuss about Local interface. Here we are using same EmployeeDetailBusiness Project. The only Difference is  We are changing Remote to Local Interface

Read more: Local Interface In Depth

AddThis Social Bookmark Button

Scenario is: Our EmployeeDetailClient  is a standalone client. In Service method we have already stored some employee object with its attribute. Our objective is when we'll enter employee id from client, it will  execute business method , which will return  you one matching Employee object. By getting that object we'll fetch information of employee and display it . It it'll not match then it'll say not matched.

Read more: Fetching Employee Details

AddThis Social Bookmark Button

Objective: Client is Standalone java application. Our objective is the user will enter username from your client application,which will be passed to the service or EJB , which will return a String that composed of the  'Hello' suffixed with the entered name. Suppose you are entering Rajesh, the output would be

Read more: Hello User