I have a feeling that this is really a question for the JAX-RS
experts. CXF does use a message catalog system for its own messages,
and you are welcome to use it, too, but I don't see how that will help
you get polite messages into your HTML.

With a protocol like REST, it seems to me that you either need to map
from fault conditions to user-presentable messages in Javascript in
the client, or you need to avoid the protocol's concept of an error --
always 'succeed', but return an error indication and whatever sort of
user-presentable message that you need along with success.

However, caveat, the JAX-RS experts may well arrive and explain that
this is a JAX-RS core capability and I'm confused.


On Sun, Nov 23, 2008 at 2:35 PM, akkij <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> For my application (using RESTful web services) we have a requirement for
> error cases to respond to user with proper error codes & user friendly
> messages. CXF user guide mentiones a small section for Exception handling by
> either throwing WebApplicationException or returning Response object with a
> proper error code set.
>
> However i was wondering if CXF maintains messageResources or properties file
> for reading error codes and error messages something similar to spring
> framework way. If there is any example or sample to show the usage for this
> then please point me to the link.
>
> thanks,
> Akash
> --
> View this message in context: 
> http://www.nabble.com/Error-Codes---Error-Message-handling-using-CXF-tp20649919p20649919.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to