I have a web-application that only requires the servlet-container to run. My login page and front page do not have any backend transactions, but all others do. What'd be the simplest way to guarantee that I don't send all my threads into some socket wait for a backend system (CXF-webservices) ? This is weblogic 10.3 but I'm really not that concerned about standards compliance.
I have an AOP aspect that already intercepts all backend traffic, so I figured I could increment/decrement an AtomicInteger and throw an exception when there's too few threads left, but that gives the problem of determining current thread pool size.
Any ideas ?