Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…group_id=168953&atid=848537

The fix is not JDK 1.4 compatible, but so is all of the XMLA driver anyways. Will investigate later.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@279 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Sep 30, 2009
1 parent a6297b9 commit 2dc01de
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/org/olap4j/driver/xmla/XmlaOlap4jDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,19 @@ public class XmlaOlap4jDriver implements Driver {
/**
* Executor shared by all connections making asynchronous XMLA calls.
*/
private static final ExecutorService executor =
Executors.newCachedThreadPool();
private static final ExecutorService executor;

static {
executor = Executors.newCachedThreadPool(
new ThreadFactory() {
public Thread newThread(Runnable r) {
Thread t = Executors.defaultThreadFactory().newThread(r);
t.setDaemon(true);
return t;
}
}
);
}

private static int nextCookie;

Expand Down

0 comments on commit 2dc01de

Please sign in to comment.