IIRC Markus added ejb-finders-{0}.xml merge point but then he found the
limitations of it and removed it. It existed for maybe 2-3 weeks (?). Am
I right Markus?Ara. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > [EMAIL PROTECTED]] On Behalf Of Shaw, Chris > Sent: Friday, July 12, 2002 1:02 PM > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] [Finders] Adding finders... > > Thanks for the reply. > > Good news and bad news.... > > The good news is that you are of course right, I didn't recreate the > package > structure....and of course this way makes more sense than a flat > directtory. > (I was confused by the fact that hardcoding the name into ejb-body.xdt > actually worked, even with a flat directory). > > But, unfortunately in the case of finders, even though the file is picked > up > and the query tags are inserted into ejb-jar.xml this then > produces a deploy error because the finder in question doesn't actually > exists in the Local/Home interface... > > Would it be possible to pick up the ejb-finder-{0}.xml and add the finder > also to the Local/Home interface? otherwise adding a finder in this way > doesn't make much sense I guess. > > Thanks (again!) > > Chris > -=-=-= > > -----Original Message----- > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]] > Sent: 12 July 2002 10:09 > To: Shaw, Chris; [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] [Finders] Adding finders... > > > Make sure <ejbdoclet > mergedir="is-pointing-to-where-the-merge-files-are"/>. And make sure > ejb-finders-MyBean.xml is in the folder which follow the exact package > structure of the bean (mymergdir/com/blabla/ejb-finders-MyBean.xml). > IIRC there was a bug in maybe 1.1.2 (?) that caused the merge facility > to misbehave, and look at > mymergdir/com/blabla/interface/ejb-finders-MyBean.xml for example > instead (<packagesubstitution/>). So may also try that. > > Ara. > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > > [EMAIL PROTECTED]] On Behalf Of Shaw, Chris > > Sent: Thursday, July 11, 2002 1:42 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [Xdoclet-user] [Finders] Adding finders... > > > > Hi, > > > > I'm still having no success with this...I think there's a bug maybe? > > > > (I tried creating a session-beans.xml in my mergedir and this *was* > picked > > up and placed in the ejb-jar.xml file so I know at least that the > location > > of my mergedir is ok.) > > > > But my finders are not picked up.... > > From ejb-body.xdt I can see > > <XDtMerge:merge file="ejb-finders-{0}.xml"> > > <!-- Write a file named ejb-finders-<XDtClass:className/>.xml > if > > you want to define extra finders. --> > > > > I edited ejb-body.xdt and hardcoded the name of my file, > > ejb-finders-FunctionBean.xml > > and it worked, so all I can think is that maybe the value of: > > {0} > > and the value of > > <XDtClass:className/> > > aren't pointing at the same thing. > > > > Has anyone got this to work? > > > > Thanks > > > > Chris > > -=-=-= > > > > -----Original Message----- > > From: Shaw, Chris > > Sent: 09 July 2002 13:38 > > To: [EMAIL PROTECTED] > > Subject: RE: [Xdoclet-user] [Finders] Adding finders... > > > > > > Hi > > > > I'm trying the finders merge point and having no joy at the moment: > > My build.xml file points ejbdoclet to my mergedir as follows: > > <ejbdoclet destdir="${gen.java.dir}/main" > > mergedir="${project.home}/src/xdoclet/finders" > > > > In this directory I have a file called: > > ejb-finders-FunctionBean.xml (my bean is called > FunctionBean.java) > > which contains the following: > > <query> > > <query-method> > > <method-name>findByName</method-name> > > <method-params> > > <method-param>java.lang.String</method-param> > > </method-params> > > </query-method> > > <result-type-mapping>Local</result-type-mapping> > > <ejb-ql><![CDATA[SELECT DISTINCT OBJECT(o) FROM Function o > WHERE > > o.functionName = ?1]]></ejb-ql> > > </query> > > > > But the ejb-jar.xml file does not include my entry, all it does > include is > > the following line: > > <!-- Write a file named ejb-finders-FunctionBean.xml if you want to > > define extra finders. --> > > > > Does this functionality work yet? or have I missed a step out? > > > > Thanks > > > > Chris > > -=-=-= > > > > > > > > Em Ter, 2002-06-18 �s 05:30, Shaw, Chris escreveu: > > > > > I'm trying to do a similar thing, but without MiddleGen. > > > > > > My EJB's are auto-generated from an XML Schema, and the XML Schema > has > > no > > > knowledge about any potential finders.... > > > If I then put the finder in the Java code afterwards it will be lost > if > > the > > > auto-generation is re-run. > > > > Rejoice, for I just added a new merge point for finders. Get xdoclet > > from CVS and define a file named ejb-finders-{0}.xml ({0} being your > > bean name) and put there your <query/> elements. > > > > -- > > Ja ne, > > Pazu > > mailto: [EMAIL PROTECTED] > > > > Anime Gaiden: de f�s para f�s, sempre. > > > > > > Any e-mail message from the European Central Bank (ECB) is sent in > good > > faith but shall neither be binding nor construed as constituting a > > commitment by the ECB except where provided for in a written > agreement. > > This e-mail is intended only for the use of the recipient(s) named > above. > > Any unauthorised disclosure, use or dissemination, either in whole or > in > > part, is prohibited. > > If you have received this e-mail in error, please notify the sender > > immediately via e-mail and delete this e-mail from your system. > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Stuff, things, and much much more. > > http://thinkgeek.com/sf > > _______________________________________________ > > Xdoclet-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > Any e-mail message from the European Central Bank (ECB) is sent in > good > > faith but shall neither be binding nor construed as constituting a > > commitment by the ECB except where provided for in a written > agreement. > > This e-mail is intended only for the use of the recipient(s) named > above. > > Any unauthorised disclosure, use or dissemination, either in whole or > in > > part, is prohibited. > > If you have received this e-mail in error, please notify the sender > > immediately via e-mail and delete this e-mail from your system. > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > PC Mods, Computing goodies, cases & more > > http://thinkgeek.com/sf > > _______________________________________________ > > Xdoclet-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > Any e-mail message from the European Central Bank (ECB) is sent in good > faith but shall neither be binding nor construed as constituting a > commitment by the ECB except where provided for in a written agreement. > This e-mail is intended only for the use of the recipient(s) named above. > Any unauthorised disclosure, use or dissemination, either in whole or in > part, is prohibited. > If you have received this e-mail in error, please notify the sender > immediately via e-mail and delete this e-mail from your system. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Gadgets, caffeine, t-shirts, fun stuff. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
