Populating Velocity tags on demand

Software

Some months ago I was looking for a solution to my performance issue in Apache Velocity. 5% Of the tags used in a Velocity context was causing a slow down which where only used in a very small amount of processed templates. I did some googling on words like dynamic, template, real time, etcetera but without a good result. The solution wasn’t that rocket science but it won’t hurt sharing. The trick is registering an eventhandler, more specifically implementing your own ReferenceInsertionEventHandler.

15 Jul 2012 #java #velocity

Simple Google Maps routeplanner

html gmap

Last week I was googling for a simple implementation of a routeplanner based on Google maps. Weirdly enough I didn’t find a total solution or older ones based on the maps v2 API. So I decided to have a look at the API and In 15 minutes I had a working routeplanner. Which might explain why I found that less examples on the internet :). But for all other people who need a quick solution, I thought sharing would be good.

1 Jul 2011 #google #jquery #LinkedIn #maps

Cached credentials in http basic authentication

java

After some radio silence, it’s time for a short post. Being busy with Duchenne Heroes last year and some weeks of snowboarding I’m posting a new blog about Java’s AuthCache to avoid breaking other people’s head as it broke mine. Two weeks ago I was working on a connection with a common webservice which authentication was based on plain http basic authentication. I used CXF as a client library to handle the plumbing for me, the basic code looked like this: JaxWsProxyFactoryBean clientFactory = new JaxWsProxyFactoryBean(); clientFactory.setAddress("http://webservice.url.com"); clientFactory.setServiceClass(MyLocalInterface.class); clientFactory.setUsername("rob"); clientFactory.setPassword("secret"); fundaSoap = clientFactory.create(MyLocalInterface.class); From the start this worked great and simple, till the moment that I set up another connection based on the same url but other credentials…… That’s where the problem began.

11 Jun 2011 #java #LinkedIn

Finally did my SCJP6 exam!

java

Long time no blog, the explanation is here. After three years of having the good intention, I finally motivated myself to take the SCJP exam. From the moment I started working after my study, I told myself many times that I should for some Java certification. Just to prove that I understand what I’m doing. So I started reading in the SCJP 5 study guide (the Sierra and Bates book), and started several times…..

11 May 2010 #java

About me

Who’s Rob I bet you’re able to figure this out through my LinkedIn, Facebook and Twitter account. But in short, I’m a Dutch software developer. Mainly focused on Java platforms. Over the last year I’m more and more involved in Javascript frameworks too. Especially Angularjs has my attention. And from an architectural point of view, I’m excited about Microservices. For all other interest, see the social media. What’s Tigrou Back in the old days, I’d say around the year 2001, I needed a own domain for practicing with custom webservers, mailservers, small Linux servers, etcetera.

21 Feb 2010

Filtering your duplicate feedbackmessages in Wicket

Software

Last week I noticed that in some of my webapps written in Wicket, messages appear multiple times in a FeedbackPanel (Wicket component). That happens since multiple parts of the same page do different kind of validation which might occur in the same error/warning messages. Not a big problem but duplicate messages look a bit weird to your visitor. It’s easy to fix and probably no rocket science to you but I post it anyway :).

6 Feb 2010 #java #LinkedIn #wicket

Context based urls with Apache Wicket

Software

It’s been a while that I wrote something technical on my blog. The last ones were mainly about biking which is taking a lot of my spare time these days. I haven’t blogged about Wicket before but that doesn’t mean that I use it a lot. For the last 2 years, I’m using it at my work at Maxxton for developing rich content websites. In one of the usecases a month ago, we needed something for storing parameters in the urls which would never get lost after clicking around.

2 Jan 2010 #java #LinkedIn #wicket

NLJug J-Fall 2010

java

Wednesday the 11th of november I visited JFall for the second time. This is the yearly event of the Dutch Java usergroup next to the JSpring in april. I attended on several sessions targetting especially new Java developments. For example the big improvements in JDK 7 where I was interested in. Keynote - Enterprise 2.0: New Technologies, Innovations and Communities (Reginald Hutcherson) Speed up your applications with Java SE 7 (Jeroen Borgers) Scaling Out with Hadoop and NoSql (Age Mooij) Keynote - Adobe Systems (Christophe Coenraets) The Quest for Parallelism: How To ‘upgrade’ Your Application (Jan-Hendrik Kuperus) JDK 7, What’s in it and what’s not (Simon Ritter) Google Wave: what is it, and how does it work?

18 Nov 2009 #java #nljug

Using a custom Oracle collection type with iBatis

java

Some months ago I came across a problem with the more complex custom Oracle types in combination with iBatis. I thought that it would be nice to share it with you. In my case I had to link a list of objects in Java to an array of structs in SQL (Oracle). The biggest part of the trick is inside a custom type handler, which is actually a helper class with two important methods, the setParameter and the getResult.

17 Sep 2009 #iBatis #java