Tag Archives: tips

How to get the running tasks for a Java Executor…

I just had the issue of debugging a large concurrent job that ran using Java’s Executor and ExecutorService classes for concurrency. The job comprised of roughly 50,000 tasks submitted recursively over a multi-GB data set that took 5hrs to process. … Continue reading

Posted in Java, Software Engineering | Tagged Java, tips | Leave a comment

Writing reflective unit tests to improve code quality

I’ve found that writing JUnit tests that do classpath scanning combined with reflection is a way to write unit tests that cross-cut the entire application. This can be useful to prevent anti-patterns, enforce code standards or just to prevent common … Continue reading

Posted in Java, Software Engineering | Tagged Java, junit, tips, visural-common, warp-persist | 3 Comments

Quick Tip – Make Anything A Windows Service

I recently had to get nginx running as a Windows service and I came across a little project called “winsw” (Windows Service Wrapper) which was created by Kohsuke Kawaguchi – creator of Hudson/Jenkins. Apparently he created it while at Sun for … Continue reading

Posted in IT, Software Engineering | Tagged open-source, servers, tips, windows | Leave a comment

Demystifying HttpServletRequest properties…

I always find myself writing little test cases to figure out which methods to call on HttpServletRequest to get path / parameter information when doing low level Servlet and Filter programming. The method naming and Javadoc is pretty poor for … Continue reading

Posted in Java, Software Engineering | Tagged Java, tips, web | Leave a comment