|
Hello Konstantin et alia
Thanks a lot for your directions – it pushed it all forward a great leap.
However one serious problem remain – I cant deploy to JBoss since **FacadeLocal (extending EJBLocalObject) has Create() , update() and removeEntity() thowing RemoteExceptions which they are not allowed to:
public mypackagepath.SilkVendorData create( java.lang.String name ) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException;
As I see it I followed your receipe calling the xdoclet target:
Thank you for your great advice again!
Regards Jesper
<target name="xdoclet" depends="init, runmain">
<antcall target="entityfacade"/>
<ejbdoclet destDir="./ejb" excludedtags="@version, @author" ejbspec="2.0" verbose="true" force="true">
<fileset dir="tmp"> </fileset>
<utilobject includeGUID="true"/> <entitycmp/> <remoteinterface/> <localinterface/> <homeinterface/> <localhomeinterface/> <dataobject /> <session/> <remotefacade/>
<deploymentdescriptor destdir="ejb/META-INF" acceptInterfaces="true"/>
<jboss version="3.0" datasource="java:/DefaultDS" datasourceMapping="Hypersonic SQL" unauthenticatedPrincipal="nobody" xmlencoding="UTF-8" destdir="ejb/META-INF" validatexml="true" generateRelations="true" preferredrelationmapping="relation-table" />
</ejbdoclet>
<antcall target="modifyjboss"/>
<copy todir="./ejb"> <fileset dir="tmp"/> </copy>
<delete dir="tmp"/> </target>
//***********************************************************************************
<target name="entityfacade"> <mkdir dir="tmp"/> <ejbdoclet destDir="tmp" excludedtags="@version, @author" ejbspec="2.0" verbose="true" force="true">
<fileset dir="."> //original source lives under .\dk\itu\next\rea\transform\velocity\model\silkshop (a different namespace) <include name="**/*.java"/> </fileset>
<entityfacade/>
</ejbdoclet>
<copy todir="./tmp/dk/itu/next/rea/transform/velocity/model/silkshop/"> <fileset dir="dk/itu/next/rea/transform/velocity/model/silkshop/"/> //original files </copy>
</target>
|
- Re: [Xdoclet-user] Konstantin - I need you again :) Jesper Linvald
- Re: [Xdoclet-user] Konstantin - I need you again... Konstantin Priblouda
