Hi All:

I am using XDoclet to automate the generation of a web service from a SLSB, on Sun ONE 
App Server 7. As part of the automation steps, I have to generate the end point 
interface of the service (which will look exactly like the remote interface, with the 
difference that it should extend from java.rmi.Remote and not from 
javax.ejb.EJBObject), and an implementation of this service end point interface, which 
looks nearly similar to the remote facade that XDoclet creates.

My plan is to slightly modify the templates for the remote interface and the remote 
facade interface to get my job done. The problem is, when I try to run the 
<remoteinterface/> subtask twice, once for the orignal remote interface generation, 
and the second for the service endpoint generation (in which I specify my modified 
template), only one of the interfaces get generated, depending upon which one is 
specified later. this is a snippet of my build.xml:

......
        <ejbdoclet
            destdir="${basedir}/gen-src"
            mergedir="parent-fake-to-debug"
            excludedtags="@version,@author,@todo"
            addedtags="@xdoclet-generated at ${TODAY},@copyright The XDoclet 
Team,@author XDoclet,@version ${version}"
            ejbspec="2.0"
            force="false"
            verbose="false"
            >

            <fileset dir="${basedir}/src/java">
                <include name="test/ejb/*Bean.java"/>
           </fileset>

            <packageSubstitution packages="ejb" substituteWith="interfaces"/>


            <remoteinterface pattern="{0}IF" 
packageSubstitutionInheritanceSupported="false" templateFile="remote_mine.xdt">
             <packageSubstitution packages="ejb" substituteWith="endpoint"/>
            </remoteinterface>


           <remoteinterface/>

          <homeinterface/>
......

Can someone tell me what is the issue here, and can i fix this behavior at all, and if 
yes, how?

TIA
Sanjeev Verma



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to