• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xdoclet code generation problem

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Your mind is under my control .... your will is now mine .... read this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic