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:

 

  1. call entityfacade target à make tmp dir and run <entityfacade/> on original Bean files
  2. Copy original Beans to ejb dir where everything now lives together
  3. Invoke <remotefacade/> and remaining targets

 

 

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>

 

 

Reply via email to