If you have a set of legacy EJBs not annotated by @ejb:blabla tags then
use merge points to merge them with the newer EJBs that you annotated
with @ejb:blabla tags.

The official solution is merge points.

For example if you have a session bean and you don't have the source or
you don't want to add xdoclet tags to it and regenerate, then define a
file named session-beans.xml and copy it to the folder where mergeDir
parameter of <ejbdoclet/> points to. XDoclet will look after this file
and if there's such a file it will be merged into the generated
ejb-jar.xml. So you can easily use Xdoclet for newer EJBs and leave
legacy EJBs as is and just merge their deployment settings.

Regarding the "regenerating from scratch" it really depends. I suggest
you to define smaller ejb modules. XDoclet is smart enough to not
regenerate a remote interface class if one is already generated from a
previous build. But this smart checking feature is not yet implemented
for deployment descriptors (many java files->one generated file) but
it's already in my list. Hopefully I'll implement it this weekend :o)

Ara. 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED]] On Behalf Of Janos Mucsi
> Sent: Tuesday, December 04, 2001 11:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Xdoclet-user] adding to ejb-jar.xml with XDoclet
> 
> Hello
> 
> Our product dynamically maintains a number of EJB's. We think that
> regenerating from scratch ejb-jar.xml and the other vendor-specific
files
> would be expensive.
> 
> My question is this: What is the official solution to add to a
destination
> file using XDoclet?
> 
> Thanks.
> 
> Janos Mucsi
> Engineer
> Altoweb, Inc.
> 650-251-1561
> [EMAIL PROTECTED]
> 
> 
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to