2 Replies Latest reply on Oct 12, 2001 11:02 PM by deezh

    Help me!!!!!!Is a jboss's BUG?

    deezh

      I hava a problem on writing finder in jaws.xml.

      In my Bean' home interface have two methods

      Collection findByName(String name)
      Collection finbByName(String name,Integer status)

      in jaws.xml:


      findByName
      name = {0}

      <read-ahead>true</read-ahead>



      findByName
      name = {0} AND status = {1}

      <read-ahead>true</read-ahead>


      I deployed the Bean

      I test the bean ,the method findByName(String name) is correct! but the method findByName(String name ,Integer status) return 0 results.

      If I change the order of the two finders in jaws.xml ,
      when I deploy the bean , throw a Exception java.lang.NumberFormatException : 0) AND SERVICE_ID =


      who can help me?


        • 1. Re: Help me!!!!!!Is a jboss's BUG?
          cincaipatron

          I don't think you could overload method like that
          if you're gonna use jaws (cmp) -- I think I read
          it somewhere either in doc or this forum.
          I've encountered the same problem, I need findByXXX()
          will return all rows, and findByXXX(int start, int
          totalRow) will return rows start from certain rows,
          with total rows returned.
          My work around for this was to rename the second
          method as findByXXXRange(int, int). Hope that's
          helpful.

          • 2. Re: Help me!!!!!!Is a jboss's BUG?
            deezh

            thanks.cincaipatron