Re: Resource injection fails for an AOP scoped proxy bean

2008-07-24 Thread CFX Novice
gt; > Cheers, Sergey > >> >> Even then, I would need access to HttpServletRequest in xyzSessionState >> which >> is now an aop-scoped proxy bean and again resource injection would not >> work, >> isnt it? >> >> &g

Re: Resource injection fails for an AOP scoped proxy bean

2008-07-24 Thread CFX Novice
Even then, I would need access to HttpServletRequest in xyzSessionState which is now an aop-scoped proxy bean and again resource injection would not work, isnt it? ianroberts wrote: > > CFX Novice wrote: >> Hi, >> >> I have this piece of code in m

Resource injection fails for an AOP scoped proxy bean

2008-07-24 Thread CFX Novice
Hi, I have this piece of code in my applicationContext.xml Somehow resource injection stopped working as soon as I started using I need to access the HttpServletRequest object in my service class. Any help would be greatly appreciated -- View this m

Re: Unable to get results from JAX RS service after declaring the referred bean as session scoped

2008-07-24 Thread CFX Novice
I figured out the problem. Turned out that xyzService had some attributes which were not serializable so declaring them transient solved the problem. CFX Novice wrote: > > Hi, > > I have this piece of code in my applicatio

Unable to get results from JAX RS service after declaring the referred bean as session scoped

2008-07-23 Thread CFX Novice
Hi, I have this piece of code in my applicationContext.xml Before I made the bean session-scoped everything was working fine but when I made it session-scoped, I'm getting the following exception: Application has thrown exception, unwinding now: java.

Re: REST, error handling, HTTP status codes

2008-06-18 Thread CFX Novice
Thanks, That worked. Sergey Beryozkin wrote: > > Hi > > You can do > > new > WebApplicationException(Response.status(...).entity(formatErrorMessageAsNeeded()).build()) > > > Once ExceptionMapper providers are supported, one'll be able to > > throw custom exceptions from the application c

Re: REST, error handling, HTTP status codes

2008-06-17 Thread CFX Novice
Hi, I'm making an AJAX request to a REST service.I'm trying to return a JSON response from my service class method. So if the method throws a WebApplicationException I get an error like:"XML Parsing Error: no element found" Is there something I need to do to be able to marshal the WebApplication