Hi,
I have this piece of code in my applicationContext.xml
<jaxrs:server id="xyzserver" address="/xyzservice/">
<jaxrs:serviceBeans>
<ref bean="xyzservice" />
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="xyzservice" class="com.xyz.xyzService" scope="session">
<aop:scoped-proxy/>
</bean>
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.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
I made xyzService class Serializable, and then accessing the service gives
an NPE
Any clues? I just need the xyzService bean to be session scoped
--
View this message in context:
http://www.nabble.com/Unable-to-get-results-from-JAX-RS-service-after-declaring-the-referred-bean-as-session-scoped-tp18611651p18611651.html
Sent from the cxf-user mailing list archive at Nabble.com.