Every EJB has some business methods that can be called after looking up the EJB by it’s JNDI name. To call a business method it should be declared in Remote Interface and the related EJB should have it’s definition. Manually adding a method to a EJB is not an easy task for a J2EE programmer. NetBeans provides an easy way for adding a business method to EJB so that it will be added to Remote Interface and EJB automatically. After adding business method you just have to write business logic in EJB class. Other configuration task will be handled by NetBeans.
(more…)