• Post Reply Bookmark Topic Watch Topic
  • New Topic

primark key for entity bean through ejbdoclet  RSS feed

mridul das
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We aare using ejbdoclet to generate remote, local, home interfaaces and descriptors for our ejbs. For the entity bean however the primary class is not getting generated and also the <prim-key-class>int</prim-key-class> in the ejb-jar.xml shows int instead of the expected class .
this is the ejbDoclet task.
<target name="ejbDoclet">
<mkdir dir="${ejbDoclet}"/>
<mkdir dir="${services.build}" />
<ejbdoclet destdir="${ejbDoclet}" excludedtags="@version,@author" addedtags="@xdoclet-generated at ${TODAY}" ejbspec="2.0">
<fileset dir="${ejbApp}">
<include name="com/ads/app/property/entity/DataBean.java" />
<remoteinterface pattern="{0}"/>
<localinterface pattern="{0}Local" />
<localhomeinterface />
<deploymentdescriptor destdir="${oms.services.build}/META-INF" mergeDir="${descriptorsOMS}" />
<weblogic version="7.0" datasource="XYZ" xmlencoding="UTF-8" destdir="${services.build}/META-INF" />

I am not sure what is missing or what else needs to be done.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!