> Here's my chance to get some good info on xdoclet
> from an expert ;-)
> 
> 1. Looking at the docs for xdoclet it looks to me as
> if the merge stuff lets you easily construct a
> complete dd.  I was talking about deploying the same
> java class(es) under several jndi names, with say
> mappings to several database tables.  Is this
> possible?
Yes it is.
And if it is not, it is a bug in xdoclet.
JNDI, hmmmm, I go that way already ;-).  The issue here is to all lookups hardcoded in 
your program to name (usually the COMP_NAME generated by xdoclet in home interfaces), 
so you need an indirection here, use jboss.xml could solve the problem here.
I choose to use a Map (read through xml through a MBean) to forward a name A to a name 
B.  For example OrderCMPHome to OrderBMPHome, then all my existing code continue to 
work and go to see another JNDI under different deployment.
Back to xdoclet, here I see no merge point in jboss_xml.j so it's a xdoclet bug :(

Database name:
You have a merge in jboss-jaws.j : jaws-db-settings-{0}.xml
This means if you have jaws-db-settings-OrderBean.xml, when you run xdoclet on 
OrderBean, all the information will be extracted from the file (under a directory path 
similar to the classpath) and replace all what you can find under <XDtMerge:merge 
file="jaws-db-settings-{0}.xml"> in jboss-jaws.j.

Got it ?
Thanks to Ara (Southern Rickard ;) )

> 
> 2. Is there some way to use xdoclet with a package of
> ejb's you buy where you don't get the source code?  I
> thought it started with source code and generated the
> complete deployable package that will work on many
> app servers without further modification.  That's why
> I was talking about role separation.  If you are
> forced to start with binary classes and an existing
> ejb-jar.xml does it help you?

xdoclet works on javadoc/doclet tags so it parses the source file for @ comments on 
class and method.  i am not sure to understand your question :(

______________________________________________________________________
View this jboss-dev thread in the online forums:
http://jboss.org/forums/thread.jsp?forum=66&thread=5471

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to