[jboss-user] [EJB/JBoss] - Re: What Xdoclet tag can I use for read-ahead/left-join?

haschibaschi do-not-reply at jboss.com
Fri Sep 22 09:04:59 EDT 2006


You must use a merge file. All possible merge-files you find here:

http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/jboss/ejb/JBossSubTask.html

the very tricky thing is, that you must build the package-structure and store the file in the right package. Here is my structure:

Source-code:
src/main/java/ch/imis/ishop/ejbbackend/article/ejb

The merge-directory:
src/xdoclet

now you must build inside the merge-dir the package-structure like this:
src/xdoclet/ch/imis/ishop/ejbbackend/article/ejb

and store the merge-file there.

In the ant-task you must specify the merge-dir:
<ant:ejbdoclet 
			addedTags=""
			excludedTags=""
			destDir=""
			verbose=""
			mergedir="/src/xdoclet">

my merge-file-name:
jbosscmp-jdbc-Article.xml
Article stands for the ejb-class-name

Another hint:
A merge-file defines a part of the whole target-xml-file, so you must specify the whole part and can't specify only the things you need additional to the specified tags inside the class-file. Will also mean the xdoclet-tags inside the class will not be considered for the part of the merge-file


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973554#3973554

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973554



More information about the jboss-user mailing list