Title: Message
Hello,
 
Using JDK 1.4.1 we just updated from XDoclet 1.2 beta2 to beta3.  Once we upgraded we started getting errors in our generated ejb-jar.xml deployment descriptor. 
 
For all of our entity beans, regardless that we specified view-type="remote" in the @ejb.bean tag, the create methods are getting a <container-transaction> tag defining the method for both the Home and LocalHome interface. The problem that I don't want anything defined for LocalHomes since we dont use them. This used to work fine. I've included all relevant comments and descriptor elements below.
 
Please help.
 
Thanks in advance,
Frank
 
 
Bean class comment:
/**
 * Implementation of a Stadium
 *
 * @ejb.bean name="Stadium" type="CMP" generate="true"
 *     cmp-version="2.x"
 *     view-type="remote"
 *    jndi-name="xxxxx.StadiumHome"
 *
 * @ejb.finder signature="Collection findByTeam(java.lang.String teamID)"
 *     query="SELECT OBJECT(a) FROM Stadium AS a WHERE a.teamID = ?1"
 *     transaction-type="Supports"
 *
 * @weblogic.table-name Stadium
 */
 
Create Method Comment:
 /**
  * Creates this bean.
  * @ejb.create-method
  * @ejb.transaction type="Required"
  */
 public StadiumPK ejbCreate(StadiumVO vo) throws ValidationException, RemoteException
 
Generated Deployment Descriptor:
<container-transaction >
    <method >
        <ejb-name>Stadium</ejb-name>
        <method-intf>LocalHome</method-intf>
        <method-name>create</method-name>
        <method-params>
            <method-param>xxxx.StadiumVO</method-param>
        </method-params>
    </method>
    <trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction >
    <method >
        <ejb-name>Stadium</ejb-name>
        <method-intf>Home</method-intf>
        <method-name>create</method-name>
        <method-params>
            <method-param>xxxx.StadiumVO</method-param>
        </method-params>
    </method>
    <trans-attribute>Required</trans-attribute>
</container-transaction>

 

Reply via email to