Never mind, I found the answer in Dain's excellent CMP docs. I will put some dumb basic query in the ejb-jar.xml.

Dave



[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

06/10/2003 10:19 AM
Please respond to jboss-user

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        [JBoss-user] Getting rid of "spec violation" warning w/ finder w/ no EJB-QL




Hi all,


I'm getting an EJB spec violation warning on deployment:


"2003-06-09 19:23:44,734 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
Bean   : MyBean

Method : public abstract Collection findDynamically(String, Object;) throws FinderException

Section: 10.5.6

Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor."


I'm using dynamic JBossQL in the query for findDynamically(), so I don't have an EBJ-QL query defined.


What is the correct way to use JBossQL w/ finder rather than EJB-QL. Should the finder not even be declared in ejb-jar.xml (the XDoclet docs say for @jboss.query to work, @ejb.finder MUST be defined as well).


Does one just set the verifier strictness for the EJBDeployer to false in jboss-service.xml?


Dave

Reply via email to