A Little REST with JAX-RS 2.0 and Java EE 7--A JEE Conf Session

The JEE Conf session A Little REST with JAX-RS 2.0 and Java EE 7 is online. This time I focussed on lesser known aspects and also answered most common FAQs from my projects and http://workshops.adam-bien.com/.

Any questions left? Ask questions each first monday of the month at 6 P.M. CET at: http://www.ustream.tv/channel/adambien or airhacks.io.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


What is this strange thing they call JEE? :-)

Posted by John Clingan on May 31, 2014 at 07:30 PM CEST #

I've seen some good server side JAX-RS examples, but no client side JAX-RS in your blog. Since it's a conversation between two sides, wouldn't it be nice to post a 5min video showing a java client side example? Please?

I'm loving your 1 hour long videos, because they feel 1/2 hour long!

Posted by Matheus on June 19, 2014 at 10:27 PM CEST #

Arun Gupta talking about client side JAX-RS: https://www.youtube.com/watch?v=1pU6yWyo5Yo&t=11m42s

Posted by Matheus on June 23, 2014 at 12:01 AM CEST #

Hi Adam,

you mentioned to think in Resources instead of actions when using REST ("booking/cancellation" instead of "booking/cancel"). But what, if there is no resource?

Example: I want the server(!) to send a test mail. So one could say, the mail is the resource, but not the client but the server creates this "ressource". You can also think, that the test RESULT is the resource. In this case, it is straight forward to do a get on "mailserver/testresult". But this URL does not express, that the GET makes the server to send a test mail.

Example2: You want the server to make a database backup. Here it is clear: The Backup is the ressource. But again: Not the client but the server generates the ressource and I don't see, how this could be expressed with URLs.

And last: Only the http actions "GET" and "POST" are widely accepted. Other actions (like PUT or DELETE) make trouble from time to time because of restrictive firewalls and protection software.

What do you think?


Posted by Frank on July 25, 2014 at 08:00 AM CEST #

The link to the java mag is dead. I found a new one hosted by credit-suisse:


Posted by Toni on October 15, 2016 at 05:32 PM CEST #

Hi Adam,

I mapped the javax.persistence.NoResultException so the server response could be Response.noContent().build(); it works but Glassfish/Payara keep logging it.

Is there a way to prevent it?

best regards,
Higor Granzoto

Posted by Higor on October 31, 2017 at 02:46 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments