As far as I've tested it's ok. Because xdoclet traverses classes consistently (all alphabetically for example). So the same sequence of element ids in ejb-jar.xml is also generated for ibm-bnd files, hence no problem. Why use prefixed ids, instead of unique info? Well, to make using xdoclet and AAt/... tools easier xdoclet generates ids which are compatible with those tools.
Ara. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > [EMAIL PROTECTED]] On Behalf Of J. Matthew Pryor > Sent: Tuesday, May 21, 2002 4:56 PM > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] regenerating and id for ejb-refs > > In ejb-body.j, local-ref (and other XML elements) get an id generated with > the XDtId:prefixedId , something like this > > <ejb-local-ref <XDtId:prefixedId prefix="EJBLocalRef"/> > > Now this results in sequential, increasing ids like EJBLocalRef_1, _2 etc > > The problem is that the IBM XMI template ibm-ejb-jar-bnd_xmi.j needs to be > able to generate a href tag that refers to the element by id, and hence > needs to be able to re-generate the id. > > Since the id was not created from a 'foreign key' I can't see how it can > be > recreated in the subsequent ibm-ejb-jar-bnd_xmi.j (unless it has been > stored > somewhere for later retreival ?) > > One possible solution might be to use the XDtId:id template tag in > ejb-body.j to generate an id from unique information in the > ejb-ref/ejb-external-ref xdoclet tag ? > > e.g. <ejb-local-ref <XDtId:id tag="ejb:ejb-ref" > paramNames="ejb-name,ref-name,view-type"/> > > Sound sane ? > > jmp > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
