aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes xdoclet code generation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "xdoclet code generation problem" Watch "xdoclet code generation problem" New topic
Author

xdoclet code generation problem

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Dear all,
I am using xdoclet to generate all the remote and home interface.
Let me describe the senario first :
I have a session bean : called TestSession.java in the package my.ejb.session.
I would like to generate the corresponding remote and home interfaces into the packages my.ejb.remote and my.ejb.home respevtively. However, I don't know how to config. the xdoclet tag.
Right now, I can just generate the remote and home interface to one packages called my.ejb.interfaces.
Can anyone give me some solution how to config. my xdoclet tag generation file?

Thanks
Benson
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
It seems you're already using <packagesubstitution> to put your interfaces into my.ejb.interfaces. All you need to do is change it to the package you desire. I believe that each <ejbdoclet> subtask (<session>, <remoteinterface>, etc.) accepts the <ps> element.
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Dear David,
Thanks for your suggestion. Would you tell me more about <ps>? What is ps?
Thanks
Benson
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Actually, I have used <packagesubstitution> it can only specify once for all. I try to set for each of <remoteinterface> and <homeinterface>, but xdoclet complain that both elements don't support <packagesubstitution>. Therefore, it only generate all those remote interface file and home interface file under the same package. It is not my expectation.
If anyone has any solutions, I will really appreciate that.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xdoclet code generation problem
 
Similar Threads
What is this XDoclet that everyone rants about ?
XDoclet programming benefits?
XDoclet and metadata JSR's
Developing your own templates and subtask with XDoclet
what will happen to XDoclet once EJB 3.0 is released?