All posts in 'Java'

Change of perspective: A NetBeans testimonial

23-Apr-15

This post is long overdue since JavaOne 2014. I’m not getting payed for it, it’s more a thank-you to the whole NetBeans team for bringing some fun back into my everyday coding life. I’ve been an Eclipse user for a long time, i think way back 10 years ago when it didn’t have a name […]

Read the complete article »

What’s the fuss with Java 8 Optional?

15-Apr-15

I’ve been asked several times lately by colleagues what the Optional<T> is good for, so today some more basic stuff. You can use the Optional class is as an elaborate null check like Optional<String> optionalString = Optional.ofNullable(someString); if(optionalString.isPresent()) { String string = optionalString.get(); }   // Or worse // String string = optionalString.orElse(null); // null […]

Read the complete article »

Spring: Provide Interoperability between JMS and Springs simple WebSocket messaging

03-Mar-15

Nearly 2 years ago, excellent WebSocket Support appeared in Spring 4, easily usable using STOMP over Websockets / SockJS on the client side, backed by a pluggable broker on the server side, which can either be simple broker using scheduled executor services to handle message or a full fledged RabbitMQ or ActiveMQ solution. Using @EnableWebSocketMessageBroker@EnableWebSocketMessageBroker […]

Read the complete article »