Hello,

 

I have been tumbeling with the facade subtask for quite some time and I keep getting errors for some reason.

If I understand it correctly you first have to run

 

1. <entityfacade> on the marked up beans and then in the second run call

2. <remotefacade> on the resulting beans. After this I run the remaining subtasks.

 

Is this the correct way to do it ?

 

I suspect that some of the files get overwritten when NOT using pattern=”{0}SomeOtherName” – is that so ?

 

The compile error I for all my files is this (always in the MyBeanFacadeRemote):

 

      if(_session == null) {

         _session = dk.itu.next.rea.transform.velocity.model.silkshop.SilkVendorFacadeUtil.getHome().create();

      }

 

The error is in the MyBeanFacadeRemote à method getSession() that expects a class called MyBeanNameFacadeUtil which dosent exist.

A class is generated called MyBeanNameUtil though and it has a getHome() method that return a MyBeanNameHome.

 

These are my build targets – hope you can help me: - :)esper

 

 

<target name="xdoclet" depends="init, runmain" >

 

<antcall target="entityfacade"/>

<antcall target="remotefacade"/>

 

      <echo message=". :::::::::::::::::::::Running XDoclet::::::::::::::::::::::::"/>

     

      <copy todir="ejb/dk/itu/next/rea/transform/velocity/model/silkshop/">

            <fileset dir="dk/itu/next/rea/transform/velocity/model/silkshop/"/>

     </copy>

     

<ejbdoclet

            destDir="./ejb"

            excludedtags="@version, @author"

            ejbspec="2.0"

            verbose="true"

            force="true">

 

      <fileset dir=".">

            <include name="**/*.java"/>

      </fileset>

           

            <utilobject includeGUID="true"/>

            <entitycmp/>

            <remoteinterface/>

            <localinterface/>

            <homeinterface/>

            <localhomeinterface/>

<dataobject />   

 

      <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>

     

</target>

 

<!-- ========= X D O C L E T   E N T I T Y F A C A D E ========================-->

<target name="entityfacade">

<ejbdoclet

            destDir="./ejb"

            excludedtags="@version, @author"

            ejbspec="2.0"

            verbose="true"

            force="true">

 

      <fileset dir=".">

            <include name="**/*.java"/>

      </fileset>

     

      <entityfacade pattern="{0}Facade"/>

 

      </ejbdoclet>

</target>

 

 

<!-- ========= X D O C L E T   R E M O T E F A C A D E ========================-->

<target name="remotefacade">

      <echo message=". :::::::::::::::::::::Running XDoclet REMOTE FACADE::::::::::::::::::::::::"/>

 

<ejbdoclet

            destDir="./ejb"

            excludedtags="@version, @author"

            ejbspec="2.0"

            verbose="true"

            force="true">

      <fileset dir="./ejb">

            <include name="**/*.java"/>

      </fileset>

     

      <remotefacade/>

    <session pattern="{0}Session"/>

   

</ejbdoclet>

</target>

 

Reply via email to