Recently, I was writing an Annotation Processor for the @Composite project. In good TDD fashion, that first and foremost meant writing some tests.
Although I in the end come across something that was fairly workable, it was trickier than one might have hoped for.
Tags: annotation processor, Java, model api, Testing
Filed under Java, Testing | 3 Comments »
Recently I had to get JAX-WS based webservices running on Weblogic 10.3. However instead of using the default Weblogic 10.3 stack (Metro), the Apache CXF stack had to be used. Why? We required SOAP over JMS capabilities and that is possible with CXF without much effort.
(more…)
Tags: Frameworks, Java, Maven
Filed under Deployment, Java | 11 Comments »
This entry is about JAVA_HOME. (Yep, you read that right.) I never imagined I would ever write a post on an environment variable, but – hey – I have been breaking my jaws on this one for a while, so I figured there are probably a couple of other people happy to learn about the solution.
Tags: Java, java_home, macos
Filed under Java | 3 Comments »
A while ago, I compared Preon with Erlang’s bit syntax. I looked at one one of the examples from “Programming Erlang” in particular; an example that illustrates how to decode MPEG headers using Erlang. However, this is not the only example in that chapter, so I decided to take a stab at one of the other examples as well.
Tags: annotations, bit syntax, erlang, Java
Filed under Java | No Comments »
Geertjan Wielenga has been trying to pull me back into the NetBeans community for a couple of years in a row now. I admire his perseverance; if this is typical for the whole NetBeans team, then Eclipse is going out of the window some day soon.
Tags: fluent interface, Java, netbeans
Filed under Java | 12 Comments »
Some months ago I attended a presentation at which Wilfred Springer demonstrated his very cool Preon binary codec library. Defining binary file formats in Preon requires quite a lot of fairly repetitive sets of annotations, and during a chat after the talk Wilfred mentioned (in fact, he blogged about it) how much more convenient it would be if one could just define “shortcuts”:
@RequiredEnumProperty(column = "AGENT")
for
@NotNull
@Column(name = "AGENT")
@Enumerated(EnumType.STRING)
for instance – and use those instead. Sort-of “macro annotatations” for Java, if you like.
A thought that has presumably also occurred to many frequent users of Hibernate, JAXB or other annotation-heavy frameworks.
Well, it took me rather longer than the couple of days it would probably have taken a developer of Wilfred’s skill, but finally @Composite is here! (more…)
Tags: annotation, composite, Java, macro, Spring
Filed under Java | 6 Comments »
Last week I blogged about setting your performance goals: defining your requirements. This time I’ll blog about the importance of a Proof of Concept for performance.
The IT world is very sensitive to trends. Having been around in the IT industry for 15 years, I’ve seen a few. A technology is hot for a while, and then quickly becomes out-of-fashion and yesterdays news. It will be replaced by something which is much better and what everyone follows almost blindly.
(more…)
Tags: Architecture, Java, Performance
Filed under Architecture, Java, Performance, Quality Assurance, Requirements Management, Testing | No Comments »
Last week I blogged about how performance problems manifest themselves: frustration, loss of revenue and disruption of development; and how adding hardware is a questionable solution. This week I’ll blog about the first step to assure web performance.
It can be a valid choice to run the risk of performance problems in production and deal with them in a re-active manner. However, it is usually wiser to be pro-active and prevent them. This approach brings more certainty, peace of mind and also saves money. It consists of seven steps. Step 1: Define performance requirements.
(more…)
Tags: Java, Performance, requirements
Filed under Java, Performance, Requirements Management | No Comments »
After the GIDS 2008 last year, me and one of my colleague at Xebia expressed our interest in attending Developer Summit this year. Great Indian Developer Summit(GIDS) took place from 23-25 April 2009 at Bangalore , India.
Our journey started with witnessing a huge chaos at the airport. Their systems had gone down so everything was haywire. We joked of representing Xebia here as well to present them a better software solution
@Bangalore , India
The first day saw a huge number of people. A lot of buzz and enthusiasm among the delegates. Big sponsors like Microsoft, Adobe , Red hat , JBoss , IBM , Yahoo , Sony Ericsson were associated with this event. Everyday there were five parallel tracks going on at five different halls.
In this blog I would briefly cover the highlights. (more…)
Tags: Java, Xebia
Filed under General | 1 Comment »
Traditionally acceptance test was difficult to integrate with web. Now with combination of fitnesse and selenium you can do the integration easily.
Tags: fitnesse, Java
Filed under Java | 2 Comments »