hmm, You right.
I looked jbosscmp-jdbc DTD and saw the finder element there exists.
However xdoclet didn't generated finder in jbosscmp-jdbc.xml
Probably Xdoclet doesn't modify jbosscmp-jdbc.xml?
That is weird
Well,
thanks again
It was a good point
-----Original Message-----
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 5:00 PM
To: Boris Tamarkin
Subject: Re: [Xdoclet-user] @jboss:finder-query doesn't modify home
interface
Boris,
> Thanks for help
np.... sorry I couldn't answer the question.
> One thing I would clarify that xdoclet does generate this method in home
> interface,
> however jboss container see it as abstract method,
> probably because of query is not defined in ejb-jar.xml
you've got me confused here.... I've been spoilt by XDOclet for too long. where in ejb-jar.xml should the finder go? My
recollection is that it just goes in jaws.xml. The only other thing I can think of its that if you're using CMP2, the finder should
be in jbosscmp-jdbc.xml yes? in this case, then we need different tags for the cmp2 ejb-ql query. although I'm a little patchy
here off the top of my head on what is required - I have this stuff at home.
does that sound right? cmp2, means jbosscmp-jdbc.xml, is the finder in there?
cheers
dim
>
> Thanks anyway,
> I will try to post this question on jboss forum
>
> -----Original Message-----
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 4:50 PM
> To: Boris Tamarkin; [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] @jboss:finder-query doesn't modify home
> interface
>
>
> 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
> > >
> >
> >
>
