Business Methods
  • Example 11 shows the source code for the business methods of the Bid EJB
  • They are pretty simple looking!
    • Instance data of the bean is just:
      • An integer representing the amount of the bid
      • A long representing the time when the bid was made
    • The only work done here is to convert the time into a java.util.Calendar via the java.util.Date class
      • Could have been done when the data was loaded from the DB
  • The simplicity of these methods is very good news
    • The whole point of EJB is to make scalable, robust computing relatively straightforward

Next Slide >>