These several weeks have been rather fast paced. Even though I can't dedicate enough time on my project I've developed some thoughts on it. I still like my filter based controller, what I think I did wrong is that at the current moment I use my DAO's directly in the Actions. This is fundamentally wrong even though it gets the work done and is ok for this first phase of development. I intend to wrap these things in the Managers and stop using DAO's and DAO factories directly in that layer. Next change I plan to implement is a validation framework. I would like to use the annotations in the Java5 platform to acomplish this. Spring and OR via Hibernate comes right after :)
Relaxing SSL validation for JaxWS
I've recently had the need to access a web service developed in .Net and signed with a self signed certificate. I've decided to use the JaxWS and the Metro stack to develop the client and run it on Java6. As a plus, the service was protected with username and password. The service was exposed on an IP address and I repetedly had problems in establishing a connection. In the end, thanks to this article, it was obvious that the certificate was not created with the alternative name attribute but it was not an option to change the certificate as the web service was already used by other consumers (.net clients don't suffer by this issue). So, on my quest to relax the validation, I've found out this article and code snippet, which did not compile at first (I guess package names were changed in JDK6) so I've did some trivial refactoring and now, after invoking the static methods in the client code, the SSL connection gets validated with no problems. Hope it helps and th...
Comments