Implementing timeout for a synchronous method

Sometimes, a java call blocks forever. This may cause serious problems like blokking processing or stuck threads. In these cases, you can choose to set a timeout to break the execution and eventually roll back the transaction. To call a Java synchronous method with a timeout, you can use Executorservice as showed below. package com.nuon.infostroom.process; … More Implementing timeout for a synchronous method