Using real POJOs (without JAXB Annotations) as transfer objects with JAX-RS

December 1st, 2011 · No Comments

Are you annoyed that you have to annotate your POJOs with @XmlRootElement, so they can be used with JAX-RS? If your using Jersey as JAX-RS implementation your lucky: Just add to the <servlet> tag in your web.xml the following snippet: <init-param> <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name> <param-value>true</param-value> </init-param> After restarting your servlet, your POJOs are marshalled to JSON as [...]

[Read more →]

Topics: · , , , , , , , , ,

Openbahn-API – Bahn-Webseite als Webservice

June 22nd, 2011 · 4 Comments

As this is only of interest for German users – this article is in German only. It’s about a new project of mine. Sorry folks. Ich bin gerade dabei eine Android-App zu entwickeln, mit der es möglich ist Fahrkarten für Bahn-Pendler einfacher zu buchen. Bei der Entwicklung ist mir aufgefallen, dass die Bahn leider keine [...]

[Read more →]

Topics: · , , , , , , ,