JSR 311, Java API for RESTful Web Services

Having met Marc, I’m sure he’s got some great ideas and the best of intentions for this JSR. However, he’s got an uphill struggle given the propensity for the JCP to produce horrible compromise solutions that excite very few people.

I’ve spent some time of the last few days trying to design a java REST API and I’m a little stuck. I keep on defining a higher level HTTP API. That, or a generic object/HTTP mapping a-la RoR. Neither is really a REST API. I suspect that’s what the outcome of the JSR will be, though to keep the servlet api people in Sun happy, they’ll keep the REST name, annoying a number of people and confusing many more. Please Marc, if you’re simply defining a higher level HTTP API, drop the REST name.

As a higher level HTTP API, I do like the example that Marc showed in his blog. It looks pretty simple, and I don’t see why (if you were building an implementation on top of the servlet API), it would take very long to implement. So, I’d encourage Sun to implement it, release it widely very soon, and solicit feedback before even a public review of the spec. You’ll get a lot more feedback from use than from people reviewing a PDF.

I think there’s real scope here for a distinct improvement for people progamming (POX|JSON)/HTTP or REST, and that it can be done pretty simply. This is a proof point for the JCP. If a spec comes out that prereqs JAX-WS, it’ll be a nail in the coffin of this JSR before it ships and will reinforce the view that complexity rather than simplicity is a JEE design goal.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




About

I’m David Illsley, I’m a Software Engineer, currently working for Morgan Stanley in London. In the past I worked for IBM developing products in the WebSphere family, and before that I studied at Edinburgh University. I'm also a PMC member @TheASF, and outside the realms of technology, enjoy skulking around the dark corners of theatre...

Archives

c

Disclaimer

The postings on this site solely reflect the personal views of the author and do not necessarily represent the views, positions, strategies or opinions of my employer.

Twitter Updates

  • *aaah* Another long weekend. I could get used to this. #fb 3 days ago
  • @ajdaniel what is now crap? Have you played with the new built in dev tools? 6 days ago
  • Frustrating not to make it to either fosdem or monkigras this week... It's like 3 buses at once or something 6 days ago
  • Wow, Danish crematoria are are pretty, uh, matter of fact… #borgen 1 week ago
  • @sd_nicholas it's a hedge against changes as it predates the final spec. Unprefixed version I think is due soon. 2 weeks ago

Follow

Get every new post delivered to your Inbox.