Janos,

This one is my fault - I haven't updated the doco yet.  As of a few days
ago I put in merge points in ejb-jar.xml, so you can add three files,
session-beans.xml, entity-beans.xml and message-driven-beans.xml to your
merge directory, and they will be placed at the appropriate points in the
ejb-jar.xml file.  I haven't as yet added support for parallel merge
points in jboss.xml and other vendor specific files (I will limit myself
to jboss in any case as I'm not sure of the other app servers).

So.... this would then suggest to approach the problem from the other
end, saying "here's my ejb-jar.xml, oh and, I have some other stuff to put
in it, here ya go..." - I'm not sure if this is going to answer your
request or not, but would think that it should go a long way towards doing
so.

otoh, what you are suggesting probably is already possible... (I haven't
tried this, so a _big_ disclaimer applies :)... if you were to set your
own template subtask up, and use the existing ejb-body.j template, then
you should be able to generate the <entity>...</entity> parts of the
ejb-jar.xml... which is the approach you're after yes?

anyway, let me know how the first option sits with you.

cheers
dim

On Tue, 4 Dec 2001, Janos Mucsi wrote:

> Regarding Ara's last answer (thanks for it, by the way):
> It is not about having "older" Java files that are not XDoclet annotated.
> Nor is it about having EJB's for which we do not have the source.
> It is about generating/changing/removing a descriptor for one bean and
> leaving all the other xml tags intact. Let's say I start out with this:
> 
> <blahblah>
>  <a>...</a>
>  <b>...</b>
>  <c>...</c>
> </blahblah>
> 
> Suppose I want to create a new entry, I need to extract 
> 
>  <a>...</a>
>  <b>...</b>
>  <c>...</c> 
> 
> and make it into a template, and merge it in at some merge point to get
> this:
> 
> <blahblah>
>  <a>...</a>
>  <b>...</b>
>  <c>...</c>
>  <d>...</d>
> </blahblah>
> 
>  Too complicated. I think XDoclet was not designed to generate parts of
> target files, right?
> 
> 
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to