facebook

XDoclet ejb.transaction problem

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #243768 Reply

    Michael J Caughey
    Participant

    I have MyEclipse BuildId 20051025-4.0.3-GA

    I have the following xdoclet mark up:

    
         * @ejb.interface-method view-type = "remote"
         * @ejb.transaction Supports
    

    and another one

    
         * @ejb.interface-method view-type = "remote"
         * @ejb.transaction NotSupported
    

    Both create the following blocks in the ejb-jar.xml:

    
       <container-transaction >
          <method >
             <ejb-name>BusinessServiceController</ejb-name>
             <method-intf>Remote</method-intf>
             <method-name>invokeNotSupported</method-name>
             <method-params>
                <method-param>com.wellpoint.ref.business.client.BusinessServiceRequest</method-param>
                <method-param>com.wellpoint.ref.business.services.BusinessService</method-param>
             </method-params>
          </method>
          <trans-attribute></trans-attribute>
       </container-transaction>
       <container-transaction >
          <method >
             <ejb-name>BusinessServiceController</ejb-name>
             <method-intf>Remote</method-intf>
             <method-name>invokeSupports</method-name>
             <method-params>
                <method-param>com.wellpoint.ref.business.client.BusinessServiceRequest</method-param>
                <method-param>com.wellpoint.ref.business.services.BusinessService</method-param>
             </method-params>
          </method>
          <trans-attribute></trans-attribute>
       </container-transaction>
    
    

    Note that the

    trans-attribute

    is empty.

    -Michael

    #243801 Reply

    Greg
    Member

    I believe that the correct xdoclet tag markup for @ejb.transaction is as follows:

       * @ejb.transaction type="Supports"

    and

       * @ejb.transaction type="NotSupported"

    Give that a try and see what happens.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XDoclet ejb.transaction problem

You must be logged in to post in the forum log in