THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Right Click on the ejb package and create a new Remote interface CountryCapital as shown in the figure
- Enter the fields as shown in the figure and select Finish.
- Add the following code as shown below
Code Block title BarCountryCapital.java borderStyle solid package ejb; import javax.ejb.Remote; @Remote public interface CountryCapital { public String capitalName(String countryName); }
...
- Similarly create a Local interface CountryCapitalLocal. Add the following code to the interface
Code Block title BarCountryCapitalLocal.java borderStyle solid package ejb; import javax.ejb.Local; @Local public interface CountryCapitalLocal { public String capitalName(String countryName); }
...