All right, I have the code compiling.....  I added the following code to 
ProductBean.java:

  |     public abstract java.util.Collection findGeneral (java.lang.String id, 
Object[] args)
  |       throws FinderException;
  | 

But now I have deployment problems.  When I deploy this package, JBoss 
complains with:

  | Method : public abstract Collection findProducts(Hashtable) throws 
FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | 

Sooooo, a 'findxxx()' method is assumed to be a finder method.  Okay.  If I 
change 'findProducts()' to 'searchProducts()', as in:

  |     /**
  |      *  @ejb.home-method
  |      *      view-type="local"
  |      */
  | 
  |     public java.util.Collection searchProducts (Hashtable clauses)
  |       throws FinderException
  |     {
  |      . . . . .
  |         return findGeneral (jbossQL.toString(), args);
  |     }
  | 
JBoss (at deployment) complains with:

  | Method : public abstract Collection searchProducts(Hashtable) throws 
FinderException
  | Section: 12.2.11
  | Warning: Each local home method must match a method defined in the entity 
bean class.
  | 
Hmmm.  But ProductLocalHome includes a 'public Collection searchProducts()...'
Ideas?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856001#3856001

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856001


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to