The HelloWorldEJB Project

The HelloWorldEJB project contains the server side business logic. This section describes the EJB code.

EJB Interface

The EJB interface HelloWorld contains the CRUD operations that are available to the user to RESTify using the REST Interface Creation Wizard. Here's a quick look at the interface:

public  interface HelloWorld {
     //CRUD operations 
  public Country addCountry(....) throws Exception;
  public Country updateCountry(...) throws Exception;
  public Country deleteCountry(...) throws Exception;
  public Collection getCountries() throws Exception;
  public Country getCountryById( int id) throws Exception;
  public PagingResult getCountries(...) throws Exception;
        .
        .
        .
  }

The EJB implementation, HelloWorldImpl, gives the implementation of the EJB interface.