I just wrote a test case of injecting the resource to an enhanced object by CGLIB, and it worked well. Currently , I can't inject any resource to the instance of JDK Dynamical Proxy which is also a part of Spring AOP solution.
Can you send me a same sample of using the tx:annotation-driven ? I can test my solution with it, hope it is not implemented with JDK Dynamical Proxy. Willem. blacksheep wrote: > > Hi, > > I am using <tx:annotation-driven/> in my spring.xml . > What's the workaround for this case ? > > Thanks, > > Karakoyun > > > On 9/28/07, Willem Jiang <[EMAIL PROTECTED]> wrote: >> >> Hi , >> >> How do you set up your endpoint implementor? >> >> I know there is an issue that if your implementor is came from a Spring >> bean which is enhanced by Spirng AOP will not get any WebServiceContext >> resource injected. >> >> You can find the detail information about the JIRA here [1] >> [1]https://issues.apache.org/jira/browse/CXF-1074 >> >> Willem. >> >> >> Mustafa Egilmezbilek wrote: >> > Hi, >> > >> > I am trying to access WebServiceContext to be able use HttpSession as >> > described in: http://cwiki.apache.org/CXF20DOC/servlet-transport.html, >> but I >> > keep getting null. What might be the reason ? >> > >> > >> > @Resource >> > >> > *public* WebServiceContext wsContext; >> > protected HttpSession getHttpSession() { >> > MessageContext mc = *wsContext*.getMessageContext(); >> > HttpSession session = ((javax.servlet.http.HttpServletRequest >> > )mc.get(MessageContext.SERVLET_REQUEST)).getSession(); >> > return session; >> > } >> > >> > >> > >> > Thanks, >> > >> > Karakoyun >> > >> > >> > > > > -- > Mustafa Egilmezbilek > > -- View this message in context: http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a12961806 Sent from the cxf-user mailing list archive at Nabble.com.