Archive for the 'Java' Category

JBoss Seam to the rescue!

Friday, March 2nd, 2007

One area that had annoyed me about RESTEasy is dealing with JAXB annotated Entity Beans that get returned from a Stateless Session Bean. Once the SLSB returns the entity, the transaction is committed but the object graph that will be needed for the XML representation may not be fully initialized, thus resulting in a LazyInitializationException [...]

Automagically RESTful Entity Beans

Thursday, March 1st, 2007

So far, I have gotten some very useful feedback for RESTEasy. One excellent set of questions came from the rest-discuss group on Yahoo!:

How do you map different parts of the namespace to the same component? What, for instance, do GETs to the following resources result in:

  http://localhost/resteasy/contacts/12345/something
  http://localhost/resteasy/contacts/12345?myparam=whatever

The short answer is that you could map [...]

RESTEasy Project Page up

Monday, February 26th, 2007

Just FYI to anyone who is interested, the project page for RESTEasy is up here and the sources are now in Subversion on Source Forge. Please keep in mind that that this is very much a work in progress.

URI Templates in RESTEasy

Friday, February 23rd, 2007

One nice feature of RESTEasy is its support for URI Templates. The URI Template spec defines a means of embedding variables in the URI. So the following URI Template:

http://somehost/contacts/{contactId}

Could return an XML document for a contact where the contactId=234:

http://somehost/contacts/234

In this example, we might be executing the following Java method:

@HttpMethod(”GET”)
public Contact getContactById(@URLParam(”contactId”) Long contactId) {
[...]

RESTEasy Preview: A RESTful Web Services Framework for Java

Wednesday, February 21st, 2007

For the past few months, I have been mucking around with an idea for a RESTful Web Services framework I call RESTEasy. The project was inspired by the JAX-WS API and some of the work done by the WADL project. Yesterday, I noticed this post on Marc Hadley’s Blog regarding JSR-311. I thought I’d [...]

Java 6 on Mac OS X may Require Leopard

Tuesday, December 12th, 2006

I was very happy to see that Sun released a final version of Java 6 yesterday. But what I find very disappointing was that Apple has not updated a Java 6 version for Mac OS X still remains only a developer preview which is based on JDK 1.6.0_b88. If you’ve been following Java 6, you [...]

F3: Java’s Upcoming Killer RIA Scripting Language

Saturday, November 18th, 2006

You could describe F3 as being kind of like Flash meets Java. I ran across a link to Chris Oliver’s Blog, from a post on OS News, where he talks about an upcoming project from Sun called F3. The latest demos Chris has up are quite impressive. There is also mention to a server component [...]

How to Save AJAX, and it’s Not More Crappy Articles

Thursday, October 5th, 2006

This weekend, I read a pretty ridiculous article. You may have heard about it, it’s titled: “How to save JEE, and it’s not EJB3.0″. JDJ must have nothing new to write about these days considering that the original post had been published 9 months ago and they’re just getting to it now. But whatever, that’s [...]

Pramati’s SPAM-Like Marketing Efforts

Monday, September 4th, 2006

About three years ago, I signed up to download a demo of some product from a company called Pramati. I believe the product was Pramati Studio, but it doesn’t matter, as the product wasn’t for me at the time. Just today, I get an email with a subject line of: Welcome to the “Marketing” mailing [...]

Reiterating the JavaBean

Friday, June 2nd, 2006

I love this blog post. Richard is right, very few people actually do understand what a true JavaBean actually is and/or does. Kudo’s to Richard for reiterating a great spec that most people seem to have forgotten. But what also boggles my mind is how many people are simply unaware of the JavaBean helper classes [...]