facebook

[Closed] Bean-Managed Transaction and xDoclet

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

    jlubbis
    Member

    Hi,

    does anybody know, how to specify Bean-Managed Transaction in EJB using xDoclet?
    By default, xDoclet set Contaner-Managed Transaction in EJBs (<transaction-type>Container</transaction-type> in ejb-jar.xml).
    I did NOT find any appropriate tags in xDoclet documentation.
    Thank you very much for any hint or link.

    –Eugen

    #240824 Reply

    Greg
    Member

    In your session or message bean try putting an additional XDoclet tag, transaction-type=”Bean” in your @ejb.bean tag like the following:

    * @ejb.bean name="Trader"
    *           display-name="Name for Trader"
    *           description="Description for Trader"
    *           jndi-name="ejb/Trader"
    *           type="Stateless"
    *           view-type="remote"
    *           transaction-type="Bean"

    Then re-run XDoclet and your ejb-jar.xml should be updated accordingly.

    #240846 Reply

    jlubbis
    Member

    Thank you very much. I should have read xDoclet documentation more properly.

    #240847 Reply

    Greg
    Member

    No problem, glad its working for you.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Bean-Managed Transaction and xDoclet

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