Archive for the ‘Java’ Category

A first look at Spring Boot, is it time to leave XML based configuration behind?

April 15th, 2014 by Magnus Larsson

Spring Boot makes it very easy to create Spring based applications. Spring Boot takes an opinionated view of the Spring platform and third-party libraries, allowing us to get started with a minimal configuration. For example we can develop a Jave EE based web application without any configuration files. Not even a web.xml file is required!
When [...]

Tags: , , , ,
Posted in Build, Java, Java 7, Java EE, Open Source, RESTFul, SOA, Software Craftsmanship, Tools, Web | 1 Comment »

A first look at Gradle, is it time to leave Maven and Ant behind?

April 14th, 2014 by Magnus Larsson

Gradle is a build tool that tries to combine the best of Maven and Ant and at the same time replace the verbose XML syntax in these tools with a compact and easy to understand Groovy based DSL. Gradle supports Mavens default project structure, dependency management mechanism and repository infrastructure making a replacement fairly straight [...]

Tags: , , , , ,
Posted in Build, Build automation, Dynamic languages, Java, Java 7, Java EE, Mobile, Open Source, RESTFul, Software Craftsmanship, Tools | 1 Comment »

C10k: Lightweight Java servers for large scaled realtime WebSocket communication

August 12th, 2013 by Magnus Larsson

According to my colleges that work with frontend technologies many of our customers have today started to use HTML5 to build single page web apps but most of them have not yet switched from old school HTTP to WebSockets when it comes to communicating with backend server applications.
WebSockets simplifies much of the complexity in HTTP [...]

Tags: , , , , , , , ,
Posted in Architecture, Java, JavaScript, Mobile, Open Source, SOA | No Comments »

Apache Cassandra and time series with TimeUUIDType in Java

December 5th, 2012 by Peter Larsson

As almost everybody knows; one of the main benefits with Apache Cassandra is the possibility to create column indexed time series, i.e. use TimeUUIDType as comparator and you get a chronologically arranged list of indexed column names and an excellent performance when performing slice queries.
If millisecond precision is good enough for you to create an unique [...]

Posted in Apache Cassandra, Java, Open Source | No Comments »

Android – TLS/SSL Mutual Authentication

November 24th, 2011 by Marcus Krantz

Due to the explosion of smart phones on the market, the need for exposing existing enterprise systems through the mobile channel is growing rapidly. One of the first questions that will come up is how we can establish a secure communication channel with the existing enterprise system.
In this article, I will cover both how to [...]

Posted in Android, Java, Mobile, Security | 21 Comments »

Soi-toolkit meets Mule Studio, a perfect match!

June 30th, 2011 by Magnus Larsson

Soi-toolkit and the upcoming Mule Studio (currently in beta) are two tools that simplify development of services and integrations based on Mule ESB. This article describes how these two tools complement each other to make the development even more simplified (and fun ☺).
First a short introduction of the two tools and then an illustrated test [...]

Tags: ,
Posted in ESB, Java, Open Source, SOA, Tools | 5 Comments »

One-liners in Java – maybe better support in Java 7

November 28th, 2010 by Magnus Ekstrand

For sure, Java is a great language. I wrote my first Java app 1996 and have had lots of fun with it ever since. But for the past 4-5 years my interest in dynamic programming languages as Python, Groovy and Clojure has increased more and more. When working with other languages you discover a bunch [...]

Posted in Java, Java 7 | 1 Comment »

Difference between Stubs ‘n’ Mocks

November 12th, 2010 by Magnus Ekstrand

As Martin Fowler states in his article Mocks Aren’t Stubs, mocks are often confused with stubs (or vice versa). It is understandable but there are some distinctions. A common interpretation is that stubs are static classes and mocks are dynamically generated classes by using some mocking framework. But the real difference between them is in the [...]

Posted in Java, TDD | No Comments »

Advanced Debugging

October 19th, 2010 by Anders Asplund

In a project I have been working in recently a strange problem appeared.
We had a third-party dependency provided by the application server and as a consequence the same dependency marked as provided in our maven build script. In one of our own classes we called a static method in class supplied by the third-party dependency.
The [...]

Posted in Debugging, Java, Open Source | No Comments »