facebook

[Closed]Change transaction timeout using xDoclet?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    harryajh
    Member

    Using ME 4.1.1 GA, Eclipse 3.1.0, Weblogic 8.1 (sp3) on win 2000 (sp4)

    I’m trying to debug a EJB method which is part of a transaction because I’m taking a while to step throuhg the code I get this exception when it finishes –

    [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 34 seconds

    Looks like ejb transactions have 30(‘ish) seconds timeouts?

    So I thought I’d try to change the transaction timeout for my EJB method & so I put the following xDoclet tags before my method –

    /**
    * Processes finance data upload data file
    * @throws IOException
    * @since JDK1.3
    *
    * @ejb.interface-method view-type = “local”
    * @ejb.transaction type = “RequiresNew”
    * @weblogic.transaction-descriptor trans-timeout-seconds = “500”
    */

    The ejb ones are generated but the weblogic seems to be completely ignored!

    In project properties, MyEclipse | doclet | standard EJB | weblogic – is selected – xdoclete generated weblogic.xml fine!

    Any ideas?

    thanks

    harry

    #248803

    Greg
    Member

    Harry,

    According to the XDoclet documentation, this XDoclet tag is meant to be used at the class level. So try putting this @weblogic.transaction-descriptor tag with the other class level tags at the top of your EJB instead of at the method level.

    #248806

    harryajh
    Member

    thanks Greg, done the trick!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed]Change transaction timeout using xDoclet?

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