Archive for the 'Jersey' Category
The future: web development without web frameworks - my slides from the first Berlin Java conference
12 Comments Published October 9th, 2008 in Java, Jersey, OpenAjax, PURE, REST, SOFEA, SOUI, jQueryTogether with one of the senior developers on my team I gave a speech at the the first Berlin Java conference called Berlin.JAR. The topic was about how to develop applications for the web without a (traditional serverside) web framework. There is a wave towards rich AJAX applications with GUI logic in Javascript. Two forays […]
JsonBuilder for Scala, REST and Jersey
5 Comments Published September 18th, 2008 in JSON, Java, Jersey, REST, ScalaHow to generate Json for REST? If you’re suspicious of automatic generation like me?* I’ve created a markup builder which can be used with Json and made a look into the future in my post “The best Markup Builder I could build in Java”:
“Closures in Java 7 will make it much easier to write […]
As a small side note, I’ve got
import javax.ws.rs.{Path, GET, ProduceMime}
@Path(”/hello”)
class HelloResource {
@GET
@ProduceMime(Array(”text/html”))
def hello() = “Hello World”
}
working with Maven2, Jetty and Jersey. Took some time but was interesting. Any ideas for Array(”text/html”) (Scala does’t support varags the same as Java does) Perhaps a clever implicit? Need to think more.
Unscientific Jetty versus Glassfish for REST
7 Comments Published July 20th, 2008 in Glassfish, Jersey, REST, jetty, jmeterThis post was too unscientific and was updated. Jetty is an excellent container and the container of choice whenever I do something with servlets. Ever since we’ve developed SnipSnap some years ago I love Jetty. Glassfish has some very promising features like the admin console and I´m eager to try Glassfish in a project sometimes […]
Problems with Jersey, REST, JSON and UTF-8 [Update]
3 Comments Published March 22nd, 2008 in JSR 311, Javascript, Jersey, REST, UTF-8, UnicodeUTF-8 is always a problem. Unbelievable. 2008 and we still haven’t fixed this. One of my current projects is a Javascript frontend with a REST backend. The backend stores to MySQL (a famous UTF-8 trouble maker) and creates JSON to REST calls. The problems starts with UTF-8 characters. Somewhere in the callchain - as always […]
Experiments for nicely generating JSON
1 Comment Published March 18th, 2008 in Java, Javascript, Jersey, RESTI’ve been experimenting with ways to nicely generate JSON. There are many ways to generate JSON in Java, like XStream with Jettison, with JAXB or directly with REST API implementation Jersey. Often you don’t want to serialize objects or work mith maps though. Taking code from “The best Markup Builder I could build in Java” […]
Adding Web Beans JSR 299 to Jersey for REST
3 Comments Published February 25th, 2008 in JSR 299, JSR 311, Java, Jersey, REST, Web BeansWhile playing with Web Beans I thought it would be nice to add Web Beans support to Jersey. Jersey is a JSR 311 implementation for RESTful web services in Java. Though it has taken some flak, I - and others - think it’s easy to use. Because it’s easy in Jersey to control the creation […]