Tags

Tag Archives: javaee

Jersey 1.0.2 JSON and JAXB

Posted by Nick in tutorial

In a previous post I explained how to unit test JAX-RS. Let’s now have a look at a more complex example: implementing RESTful webservices using Jersey 1.0.2. To get RESTful web services (JAX-RS) that produce JSON output using Jersey you … Continue reading

OpenJPA – LL

Posted by Nick in Uncategorized

Note to self: when using OpenJPA and lazy loading just remember that the info is actually fetched when calling the getter. Direct access to fields will not load the associated entity. EOM

Unit Test JAX-RS using Java 6 and JUnit 4

Posted by Nick in tutorial

Today I was amazed to discover that Unit testing JAX-RS resources with JUnit 4 and Java 6 is insanely easy. Have a look at the example below and then read the description underneath if things are not clear enough already. … Continue reading