Hi all,
I am trying to create a home interface for an ejbSelect method within an entity bean.  
It is a select method that would be used by many different session beans, so I think 
creating a home interface in the entity bean is the best location for it (if not, 
please let me know what best practice is).

I have tried the following with no success:

===snip===
/**
 * @ejb:select
 *    signature="java.util.Collection ejbSelectDistinctStore()"
 *    query = "SELECT DISTINCT o.store FROM MyTable AS o"
**/
public abstract Collection ejbSelectDistinctStore() throws javax.ejb.FinderException;
/**
 * @ejb:home-method
 *    view-type="local"
**/
public abstract Collection ejbHomeEjbSelectDistinctStore() throws 
javax.ejb.FinderException;
===snip===

This causes an error on Jboss 3.2.2:
"Method is not a known CMP field accessor, CMR field accessor, or ejbSelect method: 
methodName=ejbHomeEjbSelectDistinctStore"

I've tried many other variations of the above, but no success yet. Does anyone have a 
working example they could show?

thanky,
-D


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to