Let me preface this with a couple of things:
1) We're just getting into using Xdoclet. We've used the trusty vi approach
til now. I love it in concept, but the docs are all over the map in terms
of completeness and consistency across versions. I understand 1.2 is a
beta. Would you advise 1.12 until the smoke clears? Betas do often come in
varying degrees of usefulness.
2) This is happening in coordination with a move to EJB2 with the release of
Orion 2.0. Our hope is that bringing Xdoclet into the mix will lighten some
of the ridiculous amount of stuff that needs to be generated to support
local, remote, home, deployment, relations, etc...
And now, on with the show, for example, my source has these lines:
* @ejb.ejb-ref ejb-name="ContractType" view-type="both"
* ref-name="ContractType"
* @ejb.ejb-ref ejb-name="KeyGenerator" view-type="both"
* ref-name="KeyGenerator"
but no ejb-refs are generated in the ejb-jar.xml file.
What I was trying to accomplish with the other stuff I mentioned was to
replicate our <cmp-field-mapping>
<entity-ref>
<cmp-field-mapping />
</entity-ref>
</cmp-field-mapping>
lines in orion-ejb-jar.xml. Those were originally generated by Orion. It's
entirely possible they don't need to be there, I suppose... our goal was to
get Xdoclet to reproduce our known working deployment descriptors, and then
move on to generating the new stuff for CMP2.
In any case, my intention in asking if anyone had some working examples was
to avoid dragging everyone through my ignorance. There's no good FM to RT
in this case (e.g., according to the site docs, orion has one bean level tag
and one method level tag, is that true given all the tags in the older
version?)
Thanks for your time,
Art
----- Original Message -----
From: "Hani Suleiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 12:29 PM
Subject: Re: [Xdoclet-user] Xdoclet 1.2 and Orion
> Hm, I've never seen orion.entity-ref, you don't need to use it, just a
> normal ejb-ref will do. I haven't used the field mapping, what are you
> trying to achieve exactly?
>
> On Wednesday, March 19, 2003, at 03:20 PM, Art Brander wrote:
>
> > Hi,
> >
> > Wondering if anyone has some examples that they could share of xdoclet
> > generating a correct ejb-jar.xml and orion-ejb-jar.xml from bean
> > source.
> >
> > The documentation is sparse (to be polite) about Orion tags. I've
> > been digging through the source trying to figure it out, but the
> > olddocs usages cause exceptions, and trying to deduce the right new
> > ones from the DTD in the source isn't working.
> >
> > For instance:
> > * @ejb.persistent-field column-name="contractType"
> > * @ejb.relation
> > * name="Contract-ContractType"
> > * role-name="contract-has-contractType"
> > * target-ejb="ContractType"
> > * @orion.cmp-field-mapping name="contractType"
> > persistence-name="contractType" ejb-reference-home="ContractType"
> > * @orion.entity-ref home="ContractType"
> > creates the relation, but no entity-ref in the CMP mapping.
> >
> > <cmp-field >
> > <description><![CDATA[]]></description>
> > <field-name>contractType</field-name>
> > </cmp-field>
> >
> > It's entirely possible that I'm mixing my EJB1 and EJB2 expectations
> > here, and so I thought someone who had a reasonably complex working
> > example might pass it along so I can see what works.
> >
> > Thanks,
> > Art ([EMAIL PROTECTED])
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Does your code think in ink?
> You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user