Showing posts with label jax-rs. Show all posts
Showing posts with label jax-rs. Show all posts

Thursday, October 07, 2010

Java2Days Sofia Day 1 (part5)

Quotes from other sessions not that interesting:

JSF has no pros
Oracle + Sun =  Snoracle

16:00 - 5. Building RESTFul Web Services with Java  Vassil Popovski, VMware

REST Principles:
-- everything is a resource
-- resources have identifiers
-- uniform access
-- resources have representations
-- link things together

HTTP methods
POST UPDATE GET DELETE

JAX-RS - java API for rest services. The presenter says that this SRS seems readable.

java.ws.rs.*

JAX-RS = POJO + Annotations

Best implementation of JAX-RS is CXF

Key concepts
- resource classes - have at least 1 resource method
- resource methods - annotated with @POST @GET etc
- provider classes  - extending JAX-RS interface

More commonly-used annotations:
@Path - relative path for a resources
@Consumers / @Produces - for media types
 - produces = output
 - consumes = input
@PathParam
@Context
@QueryParam - inject the value of a query into a variable

Benefits:
- scalable solutions
- compared to SOAP is much simpler

(next-page) 

Java2Days Sofia Day 1 (part1)

11Here I'm going to blog my thoughts about the sessions:

9:30 - 0. Introduction

The introduction was translated live in both English and French by two girl-students. :) They were kind of shy and inexperienced but it was funny to watch them.

Unscheduled introduction by a dude from Oracle forced the Vitosha schedule to be 30 minutes behind the other xxx2Days presentations... Great organization ...


10:00 - 1. Java EE 6 - why and how J2EE became popular again

Regarding JEE6 the new Oracle employee Alexis Pouchkine said that NetBeans is the best for JEE6 development today. Eclipse is still behind. Go go, NetBeans!

Expect more annotations in JEE6.

Ruby developers don't create applications much faster than Java developers anymore. Just 5-10% faster.

JEE6 compliant application servers are : Glassfish, Oracle's WebLogic, and a few more.

He's making a comparison between JEE5 and JEE6. JEE5 was all about making the development faster and easier, but JEE6 includes a lot of new features.

Detailed explanations for
- JAX-RS
- Bean validation
     - something like assertions with annotations for fields of beans - @Valid annotation makes validation recursive
     - you can create your own validation annotations
 - Web Profile
 - CDI - very interesting annotations for defining exact implementations and validations etc... Interesting code samples

Expect JEE7 with cloud features. If I can suppose right, I expect Java7 features as well :) That means we won't see it for another 2-3 years.

(next-page)