3 Replies Latest reply on Nov 23, 2002 10:45 AM by Konrad Neitzel

    Should Bean classes be developed as 'abstract'

    Qasim Newbie

      The examples in 'Enterprise JavaBeans' book by Richard Monson-Haefel implements entity beans as abstract classes.

      So I did one example where I declared my entity bean as abstract. So the code looked something like:

      public abstract class CabinBean
      implements javax.ejb.EntityBean
      {


      public abstract void setName(String name);
      public abstract String getName();
      ......

      However, when I deployed it into JBoss I got a error message saying that entity beans cannot be declared as abstract.

      So I am a bit confused. Do they need to be declared as abstract or not.

      regards