Boris,
this is odd
> I am doing accordingly to to the documentation
> It slightly different
> So
> * @ejb:finder signature="Collection findMe(java.lang.String aMe)"
> * @jboss:finder-query name="findLargeAccounts" query="me = {0}" order="me"
>
> "me" is a member of entity bean (CMP2)
>
> The problem is that JBoss see it as abstract method because query is not
> defined in ejb-jar.xml file at whole
> I tried to implement Yours example as well and it is same result:
> 16:40:34,233 ERROR [STDERR] javax.ejb.FinderException: Unknown query: public
> abstract java.util.Collection TestLocalHome.findMe(java.lang.String) throws
> javax.ejb.FinderException
putting the @ejb:finder tag in should map to putting the finder in the home interface.
I'm sorry, but I'm out of ideas here. The
only thing I can think of is that something else is upsetting it.
> May be I need to tell Jboss in someway explicitly to take query from
> jaws.xml?
as I understand it, when JBoss deploys an entity, it gets all the finders in the home
interface, and either auto-generates them, or
looks for implementations, or jaws defns. In this case it should be finding the jaws
defn.
maybe someone else can see something I'm missing. but to me it sounds like XDoclet is
doing the right thing.
cheers
dim
>
> Thanks
>
>
>
> -----Original Message-----
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 3:22 PM
> To: Boris Tamarkin; [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] @jboss:finder-query doesn't modify home
> interface
>
>
> Hi,
>
> From the samples (AccountBean)
>
> * @ejb:finder signature="Collection findLargeAccounts(int balance)"
> role-name="Teller,IRS"
> * @jboss:finder-query name="findLargeAccounts" query="$1 > 1000"
> order="balance" read-ahead="true"
>
> is that what you're doing?
>
> cheers
> dim
>
>
> ----- Original Message -----
> From: Boris Tamarkin
> To: 'Dmitri Colebatch' ; [EMAIL PROTECTED]
> Sent: Thursday, April 18, 2002 3:16 AM
> Subject: RE: [Xdoclet-user] @jboss:finder-query doesn't modify home
> interface
>
>
> Thanks for help
> However still not works.
> I provided just @ejb:finder signature="java.util.Collection
> findThisThatOrWhatever()"
> Without query itself in @ejb:finder
> In ejb-jar.xml the query for that finder doesn't exists, it is available
> only in jaws.xml
> I am receiving error while try call this finder:
> ERROR [STDERR] javax.ejb.FinderException: Unknown query:
> Do I need provide query in that @ejb:finder as well?
> However then container doesn't see query from jaws, only from ejb-jar.xml :(
>
> Forgot to mention, I am using JBoss3.0 beta2
> Thanks
> -----Original Message-----
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 7:32 PM
> To: Boris Tamarkin; [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] @jboss:finder-query doesn't modify home
> interface
>
>
> > When jboss custom finder declared with @jboss:finder-query, xdoclet
> modifies
> > jaws.xml when <@jboss/> specified in build.
> > However the home interfaces (local and remote) without change.
> > It means that that finder is not exposed.
> all @jboss:finder-query does is specify config for jaws.xml. To expose the
> methods, you'll still need @ejb:finder
> signature="java.util.Collection findThisThatOrWhatever()"
> hope that helps
> cheers
> dim
> > Any possible solutions?
> > Thanks
> >
>
>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user