Message:

   The following issue has been re-assigned.

   Assignee: Matthias Germann (mailto:[EMAIL PROTECTED])
---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-922

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-922
    Summary: Incorrect container-transaction tags generated
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2
             1.2 Beta 3
             1.2.1

   Assignee: Matthias Germann
   Reporter: Michael Haug

    Created: Tue, 1 Jun 2004 6:47 AM
    Updated: Sat, 5 Feb 2005 4:02 PM
Environment: Windows 2000, JDK 1.4.2

Description:
This Bug is a reopen of XDT-407.

You can verify the problem by adding a transaction tag to the deposit method in 
BaseTeller.java. In this case, XDoclet creates a container-transaction tag 
entry for BaseTeller. Since BaseTeller is not a EJB, the deployment fails.

test.ejb.BaseTellerBean:

public class BaseTellerBean {
    /**
     * Deposit account.
     *
     * @ejb.interface-method view-type="remote"
     * @ejb.transaction type="Required" <-- added
     */
    public void deposit(Account account, float amount) {
        try {
            account.deposit(amount);
        }
        catch (java.rmi.RemoteException e) {
            throw new EJBException(e);
        }
    }
}

Deployment-Descriptor ejb-jar.xml (XDoclet 1.2.1):

<container-transaction >
      <method >
         <ejb-name>BaseTeller</ejb-name> <-- wrong!!!
         <method-intf>Remote</method-intf>
         <method-name>deposit</method-name>
         <method-params>
            <method-param>test.interfaces.Account</method-param>
            <method-param>float</method-param>
         </method-params>
      </method>
      <trans-attribute>Required</trans-attribute>
   </container-transaction>

Deployment-Descriptor ejb-jar.xml (XDoclet 1.2 beta 2):

   <container-transaction >
      <method >
         <ejb-name>Teller</ejb-name> <-- ok
         <method-intf>Remote</method-intf>
         <method-name>deposit</method-name>
         <method-params>
            <method-param>test.interfaces.Account</method-param>
            <method-param>float</method-param>
         </method-params>
      </method>
      <trans-attribute>Required</trans-attribute>
   </container-transaction>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to