[EMAIL PROTECTED] penned

> This actually did not work. I have a method in my EJB that I want to
> timeout after 5 seconds. How can I do this?

I haven't used this setting, but my suspicion is that it simply rolls
back the transaction if it takes longer than the timeout rather than
aborting it at the point it passes the timeout. At least, this is what I
would expect given how Java threads work. Also, the WebLogic
documentation certainly says that:

    The trans-timeout-seconds element specifies the maximum duration
    for an EJB's container-initiated transactions. If a transaction
    lasts longer than trans-timeout-seconds, WebLogic Server rolls
    back the transaction."

Note that it doesn't say it aborts the transaction or stop the thread
executing it.

So, is this working as the docs say, or is the transaction actually
being committed?

-- 
David Harkness                               Sony Pictures Digital
Sr. Software Engineer   310.482.4756    [EMAIL PROTECTED]

        Those who judge the value of advice by its source
        will at once dismiss the best and follow the worst.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to