users@jersey.java.net

Jersey EJB exception

From: Herak Sen <HSen_at_vertrax.com>
Date: Thu, 23 Jul 2009 11:31:17 -0400

Hi,

when I throw WebApplicationException from resource class, it's always caught as EJBException, thus the client get wrong http error code (500).

@Stateless
@Path("/testrs")
public class TestResource{

   @GET
    public void throwExc(){

      throw new WebApplicationException();

  }
}

I guess this should not be the expected behavior.

Thanks
Herak