This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
Consider Paul's rocket mass heater.
 
subject: xdoclet code generation problem