CXF

Sakila Restful Search using CXF FIQL

There are two features that are very cool in the recent CXF 2.3 release that deserves its mention in the release notes/features document as they prove to be quite useful and powerful in certain use cases. Advanced search capabilities and Atom Logging features make CXF a compelling choice for developers Read more…

By Arul, ago
Java

Rest of Project Coin explored, advantage Java 7

Project Coin includes the following proposals that will make into Java 7. – Binary literals and underscores in literals – Strings in switch – Simplified Varargs Method Invocation – Improved Type Inference for Generic Instance Creation (Diamond) – Improved Exception Handling for Java – try-with-resources (ARM) I have briefly touched Read more…

By Arul, ago
Java

Job Scheduling in Java, why Flux?

I recently came across this interesting question on Job Scheduling in Java in the widely popular experts-exchange website. Unfortunately, you require subscription to see “expert” answers, unlike Stack Overflow. Here is my take on this FAQ: 1) Is it possible to use Sun’s own java.util.TimerTask for my complex report scheduling? Read more…

By Arul, ago
Java

SOAP over RESTy Client

JAX-RS runtime allows applications to supply entity providers which maps services between representations (via @Produces and @Consumes) and their Java types. The entity provider interfaces MessageBodyReader and MessageBodyWriter defines the contract that supports the conversion of a stream to a Java type and vice versa. Lets write a simple JAXRS Read more…

By Arul, ago
Java

RestTemplate, the Spring way of accessing RESTful services

The central API for accessing RESTful services in Spring 3 is RestTemplate. It is like any other template mechanism provided by Spring for the client side access. The default implementation uses the java.net package for creating HTTP requests. RestTemplate can be backed by Commons HttpClient using ClientHttpRequestFactory. Using Commons HttpClient Read more…

By Arul, ago