ALTERthought Blogs Archives: How-Tos
·
5 June 2007
5 Ingredients for the Application Development ROI Soup
Fact: The way most of us in the industry calculate Return on Investment (ROI) for software application development is broken.
As we continue to work with our partners, competitors, and clients, I am continually stunned by how companies quantify the business value gained from application development and integration work they perform. Typically, its an after-the-fact analysis […]
continue reading... » 5 Comments
13 December 2006
Licence Management for Java Web Applications Using Aspects
This post provides step by setp instruction on implementing license management for Java web applications. I have used open source product TrueLicense for license management and aspects to weave the license verification into the code.
TrueLicense Library Collection(TLC) is a collection of Java packages to securely create, install and verify license for closed source products. TLC […]
continue reading... » 2 Comments
20 July 2006
Developing RESTful Web Services in Java
When you think of Web services, SOAP immediately comes to your mind. Not any more! Thanks to REST, there is a simpler way to develop web services. While SOAP is well established with most vendors supporting it, REST is really catching up.
Representational State Transfer (REST) is an architectural style for distributed hypermedia systems. REST relies […]
continue reading... » 2 Comments
29 June 2006
Integrating Spring and the Struts Validator (transparently)
A client recently approached my company looking for specialized training/mentoring on how to introduce the Spring framework into their Struts fronted J2EE applications. One of the topics of particular interest was a desire to use Spring to (somehow) apply the same validation rules that are implemented in the Struts Validator for their UI to […]
continue reading... » 0 Comments
17 April 2006
Use Linux to Recover a Corrupted Windows Drive
This entry was originally posted on an earlier incarnation of this blog. It still seems to have some merit, so I have re-posted it.
So I was the unfortunate victim a harddrive hardware failure. Repeated WindowsXP CHKDSK runs did nothing to fix the problem and I came to the painful realization that I needed a […]
continue reading... » One Comment
2 April 2006
Better jUnit-ing
jUnit has been around for a long time. But there are always better techniques to implement old ways. I have provided below an efficient junit aprroach integrated with DbUnit and Spring with support for transaction and hibernate open session. Significant features are:
Integration with DbUnit: DbUnit puts database into a known state between test runs. Pre-loads […]
continue reading... » 4 Comments
29 March 2006
Java Puzzler: Thine Stack Overfloweth
THE PROBLEM:
A buddy of mine chatted me up over IM the other day with the following, seemingly simple problem:
He has a class that extends the standard Java 1.4 Exception class (BaseException)
Whenever he catches a thrown BaseException, and tries to print the stacktrace (via BaseException.printStackTrace()) he gets a java.lang.StackOverflow error.
If he calls getCause().printStackTrace() everything is […]
continue reading... » 2 Comments
13 March 2006
Access denied error in MySQL
Have you been frustrated with Access denied for user ‘chinnu’@’localhost’ errors even though as root you granted following privileges:
GRANT ALL PRIVILEGES ON MyDb.* to ‘chinnu’@'%’ WITH GRANT OPTION;
While % means any host, you probably did not see the behavior you expected.
MySQL performs access control in two stages. First, it tries to connect you with the […]

