next up previous contents index
Next: War Up: Waitfor Previous: Nested Elements   Contents   Index

Examples

<waitfor maxwait="30" maxwaitunit="second">
    <available file="errors.log"/>
</waitfor>
waits up to 30 seconds for a file called errors.log to appear.
<waitfor maxwait="3" maxwaitunit="minute" checkevery="500">
    <http url="http://localhost/myapp/index.html"/>
</waitfor>
waits up to 3 minutes (and checks every 500 milliseconds) for a web server on localhost to serve up the specified URL.
<waitfor maxwait="10" maxwait="second">
    <and>
        <socket server="dbserver" port="1521"/>
        <http url="http://webserver/mypage.html"/>
    </and>
</waitfor>
waits up to 10 seconds for a server on the dbserver machine to begin listening on port 1521 and for the http://webserver/mypage.html web page to become available.



Andrew Marlow 2003-07-08