Announcement Announcement Module
Collapse
No announcement yet.
Implication of NOT specifying timeout in tx:method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Implication of NOT specifying timeout in tx:method

    I would like to know the implication of not specifying timeout in tx:method. For example, the code below does not have any timeout specified e..g, as timeout="5"

    Code:
    <tx:method
            	name="find*"
                read-only="true"
                propagation="REQUIRED"
                isolation="READ_COMMITTED"
           	/>
    I understand that the timeout on the datasource has a different implication.

    My question:
    If timeout is not specified on a transaction, will it default to some value? Or, will the timeout value be unbounded and will honor the summation value of all the transactions?

  • #2
    Default consultant answer: it depends...

    It depends on your transactional resource, it depends on your driver implementation, it depends on your application server. So no easy answer here.

    Basically if there is no timeout specified it will not timeout, it will leave it to the other resources. However what exactly is going to happen, well depends on all of the above and probably some more.

    Comment

    Working...
    X