Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xdoclet code generation problem

 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear David,
Thanks for your suggestion. Would you tell me more about <ps>? What is ps?
Thanks
Benson
 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic