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

Reply via email to