In case anybody can help, here's the ant task. the homeinterface and 
remoteinterface tasks were added so at least the classes would be there:


    <target name="ejbdoclet" depends="xdoclet-init">
        

        <echo>+---------------------------------------------------+</echo>
        <echo>|                                                   |</echo>
        <echo>| R U N N I N G   E J B D O C L E T                 |</echo>
        <echo>|                                                   |</echo>
        <echo>+---------------------------------------------------+</echo>

        <ejbdoclet
            destdir="${gen.src.dir}"
            excludedtags="@version,@author,@todo"
            addedtags="@xdoclet-generated at ${TODAY},@copyright BI,@author 
TrTech"
            ejbspec="2.0"
            force="true"
            verbose="true"
            >
            
            <fileset dir="${sourcepath.java}">
                <include name="biaccounting/session/service/*.java"/>
            </fileset>
            
            <homeinterface pattern="{0}Home"/>
            <remoteinterface pattern="{0}Remote"/>
            
            <localinterface pattern="{0}Local"/>
            <localhomeinterface pattern="{0}LocalHome"/>
            
            <deploymentdescriptor
                destdir="${gen.src.meta-inf.dir}"
                validatexml="true"
                description="deploymentdescriptor"
                />
            
           
            <weblogic
                version="8.1"
                xmlencoding="UTF-8"
                destdir="${gen.src.meta-inf.dir}"
                createtables="Disabled"
                />
        </ejbdoclet>
    </target>







============================
============================

And here's my session bean:


/**
 * This is a session bean for accesses reference data.
 *
 * @ejb.bean         name="ReferenceRepositoryService"
 *                   type="Stateless"
 *                   view-type="local"
 *                   description="Access reference data"
 *                   jndi-name="ejb/service/ReferenceRepositoryService"
 *
 *
 * @ejb.transaction  type="Required"
 * @ejb.transaction-type type="Container"
 *
 */

package biaccounting.session.service;

import java.rmi.RemoteException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

public class ReferenceRepositoryService implements SessionBean {
    private SessionContext ctx = null;

    /**
     * @ejb.interface-method view-type="local"
     */
    public void doFoo() {
        System.out.println("\n\n+++++++++++++++++\n+ in 
doFoo!\n+++++++++++++++++++++\n\n\n");
    }
    
    //<editor-fold desc="EJB Methods">
    public void setSessionContext(SessionContext sessionContext) throws 
EJBException, RemoteException {
        ctx = sessionContext;
    }

    public void ejbRemove() throws EJBException, RemoteException {
    }

    public void ejbActivate() throws EJBException, RemoteException {
    }

    public void ejbPassivate() throws EJBException, RemoteException {
    }
    //</editor-fold>
}



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Clarance
Howatt
Sent: Friday, September 30, 2005 10:45 AM
To: xdoclet-user@lists.sourceforge.net
Subject: Re: [Xdoclet-user] Deployment Descriptor


Asleson, Ryan wrote:

>Hello,
>
>Thanks for the suggestion.  I added view-type="local" to the ejb.bean 
>attribute but still the same result.  There are definitions for the 
>(non-existent) home and remote interfaces in the ejb-jar.xml file.
>
>Any other ideas?
>
>  
>
Nope, I am doing exactly what you are suggesting with regards to the 
local interfaces.  This is what my ant task looks like:

  <target name="generate_ejb_src" depends="prepare" 
unless="generated.source.uptodate">
    <ejbdoclet
    destdir="${xxx.generated-src.dir}"
    mergedir="parent-fake-to-debug"
    excludedtags="@version,@author,@todo"
    addedtags="@xdoclet-generated at ${TODAY},@copyright 
${copyright},@version ${version}"
    ejbspec="${ejb.version}"
    force="${xxx.xdoclet.force}"
    verbose="false"
    >

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

      <packageSubstitution packages="ejb" substituteWith="ejb.local"/>

      <remoteinterface pattern="{0}Remote">
    <packageSubstitution packages="ejb" substituteWith="ejb.remote"/>
      </remoteinterface>

      <localinterface pattern="{0}Local"/>
     
      <homeinterface>
    <packageSubstitution packages="ejb" substituteWith="ejb.remote"/>
      </homeinterface>

      <localhomeinterface/>

      <entitypk/>

      <entitycmp pattern="{0}Impl"/>
      <session>
      </session>

       <valueobject pattern="{0}Value">
       <packageSubstitution packages="opmodel.ejb" 
substituteWith="opmodel"/>
       <packageSubstitution packages="document.ejb" 
substituteWith="document"/>
       </valueobject>

      <utilobject cacheHomes="true"
          kind="physical"/>

      <service-endpoint pattern="{0}EndPoint">
    <packageSubstitution packages="ejb" substituteWith="ejb.webservice"/>
      </service-endpoint>

      <deploymentdescriptor
      destdir="${xxx.meta-inf.dir}"
      validatexml="true"
      mergedir="${xxx.merge.dir}"
      description="e-Courier Application Services deployment descriptor"
      useIds="true"
      />

      <jboss
      version="4.0"
      securityDomain="java:/jaas/${xxx.server.name}Login"
      typemapping="${xxx.database.typemapping}"
      datasource="${xxx.datasource}"
      mergedir="${xxx.merge.dir}"
      xmlencoding="UTF-8"
      destdir="${xxx.meta-inf.dir}"
      validatexml="true"
      preferredrelationmapping="relation-table"
      />
      <weblogic
      version="8.1"
      createtables="Disabled"
      xmlencoding="UTF-8"
      destdir="${xxx.meta-inf.dir}"
      validatexml="true"
      datasource="${xxx.datasource.root}"
      mergedir="${xxx.merge.dir}"
      databaseType="${xxx.database.type}"
      />
      <websphere datasource="${xxx.datasource}"
                 xmlencoding="UTF-8"
                 destdir="${xxx.meta-inf.dir}"
                 validateXML="true"
                 mergedir="${xxx.merge.dir}"
      />

    </ejbdoclet>


ant this is what the @ejb.bean javadoc looks like:

 * @ejb.bean display-name="UserBean"
 *           name="User"
 *           type="CMP"
 *           view-type="local"
 *           cmp-version="2.x"
 *           jndi-name="xxxx.User"
 *           local-jndi-name="xxxx.local.User"
 *           primkey-field="userId"

The end result is that ONLY the local interface appears in the 
ejb_jar.xml file.

Sorry I can't help you.  Good luck.



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to