Showing results for JEE (tag)

HATEOAS by Example

3 Comments » January 7th, 2010 by Henri Bezemer

Hypermedia as the Engine of Application State (HATEOAS) is a very useful concept in the RESTful architectural style. The best way to show the benefits of HATEOAS is by giving an example. In this post I’ll be using the Jersey JAX-RS framework to build three RESTFul services. By mixing XForms into the equation, these services form a complete (yet tiny) web application. The example can be deployed on GlassFish. 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…

Upload a Java WebApp to Google App Engine

Comments Off October 9th, 2009 by Henri Bezemer

The Google App Engine supports the Sun Java Servlet Specification, together with a bunch of other standard and Google specific Java API’s (not including EJB). Google lets you run your Java webapp for free but with limited CPU time, bandwidth and number of requests per day. If one of these resources has been consumed your app will lock up for the rest of the day and respond only with HTTP code 403 ‘Forbidden’. If you need more you can pay for additional resources. The resource quota for a free account are more than adequate for a proof of concept. Read more…