Title: RE: [Xdoclet-user] @jboss:finder-query doesn't modify home interface
Hi,
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
 
May be I need to tell Jboss in someway  explicitly to take query from jaws.xml?
 
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
>

Reply via email to