REST-enable Your Domain Model
Expose your domain model with a REST API. Its extremely easy using JAX-RS annotations and a standard JAX-RS implementation. In this extended demo talk, we'll take an example domain model and see how to decompose it in to a RESTful API. An implementation is easy to build with JAX-RS + a domain object serializer. You'll take away the skills and tools to impress your friends and colleagues.
We'll use Jersey (the JAX-RS RI), and an Object-to-XML serialization library (Apache XMLBeans and/or JAXB RI) to implement a RESTful API “from scratch” on top of an existing domain model. The same basic architecture can be used with different JAX-RS implementations and different on-the-wire alternatives such as JSON, flatfiles, ASN.1, your name it. So the techniques demonstrated are portable and can be modified to suite an existing code base and different API requirements.
About Brian Maso
Brian is a long-time Java architect and real-world engineer, who can credibly wax nostagic about the JDK 1.0 beta days. In the decade since that release, Brian has worked mostly in and around places where web services and the Java VM reign. Clients have included: LeapFrog, Inc., GE Medical Systems, The Motor Cycle Council of America, Cardinal Health (Pyxis Corp. division), the U.S. Dept. of Defense, and many others.
Lately Brian has restricted his professional life to the bounds that his family of four children will allow, venturing away from coding and architecture work only to publish white papers, serve as an independent expert on the JSR 225 (XQJ) Expert Group, and of course share his astounding revelations to No Fluff Just Stuff symposium audiences.
Brian's specific interests include system integration through web services, ESBs and public service networks; and agile system- and unit-specification and testing.
In years past: Brian was the first Tips and Techniques Editor for the Java Developer's Journal; wrote four marginally useful technical books on Java and web development; was the first Java instructor for DevelopMentor, with whom he has delivered thousands of man-days of material to engineers across the maturity spectrum at companies and organizations across North America.
More About Brian »