2 Replies Latest reply on Aug 5, 2003 8:47 AM by gavinandrews

    Abstract Accessors via abstract public interface

    gavinandrews Newbie

      Trying JBOSS 3.2.1 with Tomcat

      I have an OrderEntityEJB which I am migrating to JBOSS 3.2.1 from JBOSS 2.x and hence EJB1 to EJB2...

      ...OrderEJB implements IOrder
      {
      }

      where

      abstract public interface IOrder
      {
      abstract public Integer getOrderId();
      abstract public void setOrderId(Integer i);
      }


      This seems OK to me.... but when I deploy I get
      No abstract accessors found for field named 'OrderId'.

      If I repeat the declaration in OrderEntityEJB then it works but one of the reasons I introduced the interface was that I need these declarations for my bulk accessors etc. elsewhere....

      Why can't JBOSS spot that I have implemented an abstract interface that defines the abstract accessors?

      (Sorry if this is a stupid question... i'm new to EJB2)

      Thanks in advance,
      Gavin