2 Replies Latest reply on Oct 17, 2002 10:48 AM by hale2jo

    problem with @ejb:select Xdoclet tag

      Hello. We are using Xdoclet 1.1.2 and Jboss 3.0.0 and are having a problem with @ejb:select Xdoclet tag.

      /*
      *@ejb:select signature="java.lang.Integer getMaxPrimaryKey()"
      * query="SELECT MAX(id) FROM KDCSPlayListContentOrderBean"
      *
      *@jboss:jboss-ql signature="java.lang.Integer getMaxPrimaryKey()"
      * query="SELECT MAX(id) FROM KDCSPlayListContentOrderBean"
      */


      /**
      *@ejb:interface-method view-type="both"
      */
      public abstract Integer ejbSelectGetMaxPrimaryKey() throws FinderException;
      /**
      *@ejb:interface-method view-type="both"
      */
      public Integer getMaxPrimaryKey() throws javax.ejb.FinderException
      {
      Integer maxPrimKey = this.ejbSelectGetMaxPrimaryKey();
      return (maxPrimKey);
      }

      When we use the preceding code, the home class does not contain the getMaxPrimaryKey() method & therefore, does not compile.

      When we change ejb:select to ejb:finder, everything compiles, but then we get an error when JBoss is starting up.

      Here is the error:

      Caused by: org.jboss.deployment.DeploymentException: Could not find matching method for public abstract java.lang.Integer org.kdcs.kdcsplaylistcontentorder.interfaces.KDCSPlayListContentOrderHome.getMaxPrimaryKey()
      throws java.rmi.Remote Exception,javax.ejb.FinderException

      Do you know why we are getting either error or what we can do to fix them?

      Thanks,
      Josephine