1 Reply Latest reply on Oct 14, 2002 7:01 AM by Tin Blaskovic

    Help! xdoclet and jboss query

    Joe Newbie

      Dear all,

      I have searched over the web but cannot find a solution.

      Do anyone successfully generate jboss-ql in jbosscmp-jdbc.xml using the latest xdoclet?

      I have tried to use declared-ql tag but error flow in jboss:-(

      Would you mind to post the tag syntax here?

      Many thanks

      Joe

        • 1. Re: Help! xdoclet and jboss query
          Tin Blaskovic Newbie

          > Do anyone successfully generate jboss-ql in
          > jbosscmp-jdbc.xml using the latest xdoclet?

          Well, this is 2 weeks later than the original post, but I'm posting for reference. The setup:
          xdoclet 1.2b1
          jboss 3.0.3

          2 tags are needed, one to declare a query and another to define it.
          @ejb.finder signature="something.something findSometing ( someArg )"
          query=""
          @jboss.query signature="something.something findSomething ( someArg )"
          query="your jbossql query here"

          This will correctly add query declaration to ejb-jar.xml and query definition to jbosscmp-jdbc.xml.
          Omitting the query attribute of the ejb.finder tag will result in query declaration not being added to ejb-jar.xml and you'll get "Unknown query method" exception on deployment.