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? Timer facility has limited capabilities … Continue reading Job Scheduling in Java, why Flux?

CXF + JPA Tutorial moved to Google Sites

Last week, I migrated the tutorial "Developing a loan processing application using Apache CXF & JPA in NetBeans" from NetBeans wiki to Google Sites. The NetBeans wiki migration late last year screwed up the contents of both the tutorials that I had contributed to NetBeans. Considering the future of NetBeans infrastructure, I decided to move … Continue reading CXF + JPA Tutorial moved to Google Sites

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 provider for handling a SOAPMessage … Continue reading SOAP over RESTy Client

Accessing RESTful services configured with SSL using RestTemplate

SSL enabled RESTful services are quite easier to develop and test using Jersey, Grizzly and RestTemplate. Jersey (resource development) Grizzly Web Server (resource configuration and deployment) Spring 3 RestTemplate backed by Commons HTTP Client (resource access) In a moment, you will notice how all these nicely fit the bill. Let us start with the POM … Continue reading Accessing RESTful services configured with SSL using RestTemplate

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 as the backend implementation supports … Continue reading RestTemplate, the Spring way of accessing RESTful services

Jersey 1.0.3 improves WADL support

Jersey 1.0.3 was released this week. This release has quite a few interesting new features and improvements to some of its existing functionality. Paul's blog entry gives the specifics of this release. One of the cool features in this release is the ability to inject WadlApplicationContext in resources. This provides access to the WADL JAXB … Continue reading Jersey 1.0.3 improves WADL support

CXF 2.2 in Action – services design simplified

I was playing with CXF 2.2 over the weekend. I would like to share my experience in building a simple blogger service using CXF which provides seamless access to SOAP and REST web services. You would soon realize how services design and development has become easier with this new CXF release. Lets dive into the … Continue reading CXF 2.2 in Action – services design simplified