B4J Question Increase timeout in JRDC request


Well-Known Member
Licensed User
Longtime User
I have a long database operation that now require more than 30 seconds and I'm starting to see error "java.net.SocketTimeoutException: timeout"
This is the code. As you see I tried to increase timeout to 60 seconds but I suppose my code is wrong because the timeout error arrives after 30 seconds (taht should be the dfault timeout).

        req.Initialize(Me, "http://" & ServerList.Get(sl) & ":" & EBport & "/rdc")
        cmd = CreateCommand("mycommand", Array As Object(NumberFormat(Month,2,0)))
        Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
        If J.Success = True Then

The above code works fine if teh operation is completed before 30 seconds.