Even though my first experience with a DB was with DB2 at the university what I ended up using at home, at first, was MS SqlServer 2000. As my project needed some sort of hierarchical category system I wanted to create a table that is self referencing itself and can do ON DELETE and ON UPDATE CASCADE triggers. Unfortunately MSSQL2K did not support this feature (I don't understand how you can do any reasonable graph data structure without it) so I had to make some scamontage tricks (google for CELKO tables and nested set) that I didn't like. I eventually tried the same thing with DB2 and it seems to work but it's out of the question as it's not free. It seems that mySql for the moment has a limit on the recursion depth of the triggers. What surprised me is that it seems PostgreSql supports such tables so at the moment it looks it'll become my favorite DB.
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