0 Replies Latest reply on Jan 19, 2004 7:18 PM by chrismalan

    Problem with wrapper method for EJBSelect method

    chrismalan

      My problem is the helper method that is supposed to call the
      ejbSelect method.

      I have tried two ways:
      1)Having the method stub in the local interface.
      This is done using XDoclet tags like so:
      /**
      * @ejb.interface-method
      * view-type="local"
      */

      public Set listStockNumbers(){
      java.util.Collection collection = ejbSelectStockNumbers();
      etc. try, catch for the FinderException
      }

      2)Using an ejbHome method
      /**
      * @ejb.home-method
      * view-type="local"
      */

      public Set ejbHomeListStockNumbers(){
      the same as in 1) above;
      }

      The select method looks like this:
      /**
      * @ejb.select-method
      * query="SELECT distinct a.stockNumber from carSchema as a"
      *
      */
      public abstract Collection ejbSelectStockNumbers() throws FinderException;

      All these are in the CMP Entity Bean.

      Every time JBoss tells me From is not found. The local JNDI name is mentioned.

      If I take away the whole select method and its helper method block the bean deploys fine.

      I have scoured the Net for help. Mostly the topic is glossed over, making me
      think the anser is really very simple. I have also read most of the 11 pages of ejbSelect search results from the forum. Seems to me I am doing it right, but it does not work. Should I forget about EJBSelect and stick with finder methods?

      Can anyone please help.

      Thanks,

      Chris