Never mind, this is definitely not working. Looking into it. Dan
On Thursday 28 February 2008, Daniel Kulp wrote: > Davide, > > How is your bus/cxf stuff configured? Are you using the defaults or > are you specifically using the spring imports to import very specific > things? > > If it's the latter, you will need to import: > META-INF/cxf/cxf-extension-jaxws.xml > as well. > > If it's the former, that sounds like a problem. I'll try digging into > this a little bit.... > > Dan > > On Thursday 28 February 2008, Davide Gesino wrote: > > willem.jiang wrote: > > > After went through the JaxWsServerFactoryBean codes, I think you > > > need to modify the invoker factory construction argument. > > > > > > Here are the codes. > > > > > > Object implementor = new GreeterImpl(); > > > String address = "http://localhost:9000/SoapContext/SoapPort"; > > > > > > org.apache.cxf.service.invoker.Factory factory = new > > > org.apache.cxf.service.invoker.SingletonFactory(implementor); > > > JAXWSMethodInvoker invoker = new JAXWSMethodInvoker(factory); > > > JaxWsServerFactoryBean factoryBean = new JaxWsServerFactoryBean(); > > > factoryBean.setAddress(address); > > > factoryBean.setServiceBean(implementor); > > > factoryBean.setInvoker(invoker); > > > factoryBean.create(); > > > > Thanks Willem, actually it works! > > Anyway if I change factory and I use the PerSessionFactory or the > > PooledFactory I always have that the session context is always not > > injected. > > > > org.apache.cxf.service.invoker.Factory factory = new > > org.apache.cxf.service.invoker.PooledFactory(GreeterImpl.class,16); > > > > org.apache.cxf.service.invoker.Factory factory = new > > org.apache.cxf.service.invoker.PerSessionFactory(GreeterImpl.class); -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog