Mar
25
answered pass typesafe config file in maven
Mar
25
revised Why can Boolean flag not also be used as wait() / notifyAll() mutex?
added 184 characters in body
Mar
25
answered Why can Boolean flag not also be used as wait() / notifyAll() mutex?
Mar
25
answered X11 Frwarding Error while trying to run a Java Utility with GUI
Mar
22
awarded Nice Answer
Mar
17
comment Numeric value out of range subtracting dates in jOOQ
Using days instead worked perfectly. Thanks! (and thanks for creating jOOQ - I would never use any other DB access technology now!)
Mar
17
accepted Numeric value out of range subtracting dates in jOOQ
Mar
17
comment Numeric value out of range subtracting dates in jOOQ
Yeah, I guess I'll have to dig into the code. I've updated the question with the version numbers. I'm basically waiting for @Lukas Eder to turn up and save the day :-)
Mar
17
revised Numeric value out of range subtracting dates in jOOQ
added 20 characters in body
Mar
16
comment Numeric value out of range subtracting dates in jOOQ
Thanks for the suggestion. You get the same error with a constant. DayToSecond.toMillis() returns DayToSecond which extends Number, but the problem is the same with a double or long input (though the generated SQL is different, e.g. cast(? as double))
Mar
16
asked Numeric value out of range subtracting dates in jOOQ
Mar
12
comment How to stop all the running threads, if one of those throws an Exception?
@Dejel thanks for the feedback! I've updated the code to avoid that problem, I hope
Mar
12
revised How to stop all the running threads, if one of those throws an Exception?
check results is not empty
Mar
11
comment How to stop all the running threads, if one of those throws an Exception?
completionService.take().get() blocks, which is no good. Yes, you should use a single thread pool for all your web app.
Mar
11
comment How to stop all the running threads, if one of those throws an Exception?
You remove the futures so that the next time through the main loop, the list of futures to check only includes incomplete ones. You do not need shutdownNow, you just leave the thread pool running, for future invocations. shutdown/shutdownNow should only be used on application termination, not within normal code.
Mar
11
comment How to stop all the running threads, if one of those throws an Exception?
@Dejel the code deliberately does not use executor.shutdownNow() which I regard as an antipattern
Mar
11
comment How to stop all the running threads, if one of those throws an Exception?
@Dejel it's the standard way of removing items from a collection while iterating through it
Mar
9
comment JavaMail API from Maven
Thanks for the clarification. I've taken the liberty of updating your answer, hope you don't mind.
Mar
9
revised JavaMail API from Maven
Fully qualify coordinates to reduce potential for confusion
Mar
8
comment JavaMail API from Maven
Do you mean there is a new javax.mail-api artifactId ? The groupId appears to be still javax.mail.
1 2 3 4 5