I'm running JBoss 3.2.3, Xdoclet 1.2.2 on RedHat 9.

I have an entity bean that looks like (annotated):

  | /**
  |  * @ejb.bean
  |  *      name="Product"
  |  *      type="CMP"
  |  *      view-type="local"
  |  * @ejb.finder
  |  *      signature="java.util.Collection findGeneral (java.lang.String id, 
java.lang.Object[] oarray)"
  |  *      view-type="local"
  |  * @jboss.query
  |  *      signature="java.util.Collection findGeneral (java.lang.String id, 
java.lang.Object[] oarray)"
  |  *      dynamic="true"
  |  */
  | public abstract class ProductBean implements EntityBean
  | {
  |     . . . .
  |     /**
  |      *  @ejb.home-method
  |      *      view-type="local"
  |      */
  |     public java.util.Collection findProducts (Hashtable clauses)
  |       throws FinderException
  |     {
  |         StringBuffer jbossQL = new StringBuffer();
  |          . . . .
  |             return findGeneral (jbossQL.toString(), args);
  |         } else {
  |             throw new FinderException ("No clauses specified");
  |         }
  |     }
  | }
  | 

The 'findProducts()' code is derived from the sample code in the Admin n 
Development 3.2.X Guide.
When I run this through XDoclet, the necessary foo seems to be in the 
'ejb-jar.xml' and 'jbosscmp-jdbc.xml' - as documented in the Admin n 
Development guide for 3.2.X.

Also, the 'ProductLocalHome' interface includes entries for the finder methods:

  | public interface ProductLocalHome
  |    extends javax.ejb.EJBLocalHome
  | {
  |    public java.util.Collection findGeneral (java.lang.String id, 
java.lang.Objec
  | t[] oarray)
  |       throws javax.ejb.FinderException;
  | 
  |    public java.util.Collection findProducts(java.util.Hashtable clauses) 
throws
  | javax.ejb.FinderException;
  |     . . . .
  | }
  | 

However, when I compile this, I get the following msg:

  |     [javac] ProductBean.java:193: cannot resolve symbol
  |     [javac] symbol  : method findGeneral 
(java.lang.String,java.lang.Object[])
  |     [javac] location: class com.tm.wineStore.ejb.catalog.ProductBean
  |     [javac]                     return findGeneral (jbossQL.toString(), 
args);
  |     [javac]                                ^
  |     [javac] 1 error
  | 
But the 'findGeneral()' method with that signature is the same package as the 
ProductBean....
Ideas?

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

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


-------------------------------------------------------
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