Showing results for Architecture (category)

JAX-RS: At ease with REST

Comments Off December 29th, 2009 by Henri Bezemer

In this post I will create a RESTful service using the JSR 311 JAX-RS implementation called Jersey on the GlassFish application server. This service will closely match the capabilities of the typical hello world demo. The focus of this post is to show how to develop a RESTful service with JAX-RS and Maven and how to deploy it on a J2EE application server like GlassFish. Read more…

Dynamic navigation with XForms

2 Comments » December 29th, 2009 by Henri Bezemer

XForms are a great way for a Java web developer to avoid the use of the JSF framework. Instead of authoring world-wide open standard (X)HTML pages, JSF lets you code JSP pages with JSF tags. JSF forces you from a truly open standard into a less open Java only standard. This alone makes me want to avoid JSF.

XForms is a programming language independent W3C open standard. In this post I will not try to show all the benefits of using XForms. I’ll assume that you’ve already decided that you want to use XForms with Java. XForms is powerful enough to provide most if not all of the presentation logic that your web site requires. In this post I will explain how dynamic navigation can be achieved fully in XForms, thereby stripping the server side Java code of all presentation logic. Dynamic navigation is a mechanism found in the JSF framework. Put very simply, an agent (browser) posts data collected on a page to a server and the outcome of processing this data determines the next page. Read more…

Web services made easy with EJB, JPA and JAX-WS

Comments Off November 4th, 2009 by Henri Bezemer

In this post I will share some code and findings that came out of an experiment with EJB 3.0, JPA (included in EJB 3.0) and JAX-WS (Java API for XML-Based Web Services) 2.0. My goal was to create a useful layer of web services on top of a database with as little Java code as possible. I wasn’t sure if the three technologies could be mixed together in a thin layer without running into serious trouble, so I decided to create an example application and test it on three popular open source Java Application Servers: Geronimo (2.1.4), Sun GlassFish Enterprise Server (2.1) and JBoss (5.1.0 GA). I’m running these Application Servers on Sun JDK 6. Read more…