Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Right Click on the ejb package and create a new Remote interface CountryCapital as shown in the figure





  2. Enter the fields as shown in the figure and select Finish.
    Image Removed

    Image Added


  3. Add the following code as shown below
    Code Block
    titleBarCountryCapital.java
    borderStylesolid
    package ejb;
    
    import javax.ejb.Remote;
    @Remote
    public interface CountryCapital {
    	public String capitalName(String countryName);
    }
    

...

  1. Similarly create a Local interface CountryCapitalLocal. Add the following code to the interface
    Code Block
    titleBarCountryCapitalLocal.java
    borderStylesolid
    package ejb;
    
    import javax.ejb.Local;
    @Local
    public interface CountryCapitalLocal {
    	public String capitalName(String countryName);
    
    }
    

...