Sounds like a pretty common thing to have to do, but suprisingly hard to find a good Java library to parse a WSDL file. I ended up settling on some CXF classes which seem to do the job, albeit still not very elegantly. The main reason why I'm posting here is because the use of CXFs WSDLManager and WSDLServiceBuilder does not seem particularly well documented, and thus might otherwise be lost over time.
I hate having to resize windows in ubuntu. For those who have tried Divvy then you'll probably agree it is a godsend when it comes to windows size and position management on Windows or OSX. However, there is a much easier way to resize easily in Ubuntu then installing some third party software, and until recently I didn't know about it...
The other day I yet again found myself using the Chain of Responsibility pattern to refactor some code that I had written a little earlier. It is one of my favorite patterns, primarily because it allows us to break a large piece of work into much smaller pieces which are far more easily re-used and unit tested.
I'm not going to describe the pattern itself as there is probably quite a lot of literature out there already. After all, it is one of the GoF patterns! The wiki page that I've linked to gives quite a good and practical description of it. Instead, I'm just going to quickly describe the recent scenario that popped up where I found the pattern useful.
Re-Configuring log4j at runtime is something we don't have to do very often, however, it can on occasion be necessary. Recently, I needed to reconfigure the location of our applications log file at runtime. The actual location was configured in a custom properties file, so there was no way to easily inject this value into our log4j.xml...
this one is mainly for my own reference because its not something I do often and there seems to be a stack of alternatives out there... this is what works for me when mounting a windows network drive
I've generally been using the jstl fmt tag to format dates. I haven't had any issues doing this until recently when I stumbled upon something quite bizarre? The date format string that I was specifying was being ignored under certain situations. Thus, instead of a nice date string like "Tues 1st June 2010", I'd end up with "Tue Jun 01 16:44:40 EST 2010".
Recently I had to map a servlet as a "welcome-file" in my servlet 2.4 web.xml. This should be straightforward, however I couldn't get it to work for quite awhile. The cause of the problem turned out to be obvious, but rather annoying, in retrospect...
Last Weekend (Friday 1st April to Saturday 2nd April) we went for a walk ... a 100km walk.
Here is the story of our grand adventure...
Today I needed to do a small performance enhancement on an application using Hibernate annotations. The optimization was to ensure that a @Lob property on a Hibernate entity was lazy loaded. By default Hibernate will allow you to lazy load associations, but any lazy loading of an entities properties is not enabled by default. This is how I went about achieving the small optimization...
We've recently needed to manage some remote branches in GIT (create and delete them). Having stumbled around google for ages trying to figure out how to do this seemingly simple task, we came up with this list of 5 commands:
Apparently GIT is supposed to be our saviour. If thats the case, then I'd rather go on living in "hell"...
A thought struck me as I was reading a chapter out of Douglas Crockfords book "Javascript: The Good Parts". The chapter was titled "Awful Parts" in reference to the large number of less than desirable features in Javascript.
I'm in the middle of doing some string manipulation in Java. It just occurred to me, as I debugged an error in my code, that the String#replace takes a literal character sequence (i.e. another String) but the String#split takes a regex. This caused a small bug in the code I was writing as I had naively assumed that #replace was consistent with #split and took a regex. Thus I was passing in a regular expression rather than a string literal. The result was the string sequence I wanted to replace wasn't being replaced
Its been awhile since I've seen something brainless and entertaining with lots of explosions, screaming and killing that ends with a typically cliched hollywood ending marketed to a quintessential yankie audience...
Here is an interesting little thing relating to dynamic CSS generation...
Recently I've integrated SASS, Blueprint and Compass into our RoR application. The question I had was how to achieve these same results in a non-RoR application.
Most of us have had experience working on projects where tight deadlines result in corners being cut and quality being sacrificed in the attempt to push an application into production. But I can't help but wonder what would a typical project in a Bizarro World look like?
I've started playing with aspects of CSS3, since it seems to be mostly supported in every single browser except ANY fully released version of Internet Explorer. Can you spot the various CSS3 additions to my blog?
I'll be adding more CSS3 styles here over the next few weeks. The animation capabilities and support for web fonts in particular are very interesting....
Been re-visiting EJB-land after having done a fair bit of Spring/Hibernate lately. Especially focussing on EJB3 and JEE 5. A few things struck me as interesting ...
These all describe the "standup" at my current project... It is lovely
Popular Articles
(8 comments)
(4 comments)
(7 comments)
(4 comments)
(4 comments)
(3 comments)
(22 comments)