Good.  Another option for you, if you look at Step #8 and then Step #7
of my WSDL-first tutorial below, you might be able to avoid the separate
cxf-servlet.xml class.  That ws-beans.xml file I refer to in Step #8
could just as well be your Spring config file--note you will need to
update your web.xml as shown in Step#7 a bit if you do that though.

Glen


2008-06-29 Piotr Skawinski wrote:
> Thanks a lot -:)
> 
> "#REF_BEAN_NAME" seems to solve my problems. I can provide my own spring 
> configuration with all the endpoints and transaction management in separate 
> spring configuration file and refer to it using import statement in the 
> cxf-servlet.xml file and afterwards use #REF_BEAN_NAME to refer to the 
> endpoint implementation.
> 
> Piotr
> 
> > Date: Sat, 28 Jun 2008 20:03:08 -0400
> > From: [EMAIL PROTECTED]
> > Subject: Re: Using spring's Ioc in the service endpoint setup
> > To: [email protected]
> > 
> > You can use "#REF_BEAN_NAME" as the implementor attribute as shown here:
> > http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html, for your
> > spring config.
> > 
> > The client.xml and server.xml for our security tests might give you some
> > ideas:
> > http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/security/
> > 
> > Also my WSDL-first tutorial might be of help:
> > http://www.jroller.com/gmazza/date/20080417
> > 
> > HTH,
> > Glen
> > 
> > 
> > 2008-06-28 Piotr Skawinski wrote:
> > > Hi,
> > > 
> > > I'm looking for some documentation on how to use spring's Ioc within the 
> > > service endpoint setup. 
> > > 
> > > For example having:
> > > 
> > > <beans xmlns="http://www.springframework.org/schema/beans";
> > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > >   xmlns:jaxws="http://cxf.apache.org/jaxws";
> > >   xsi:schemaLocation="
> > > http://www.springframework.org/schema/beans 
> > > http://www.springframework.org/schema/beans/spring-beans.xsd
> > > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
> > > 
> > >   <import resource="classpath:META-INF/cxf/cxf.xml" />
> > >   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> > >   <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> > > 
> > >   <jaxws:endpoint 
> > >     id="helloWorld" 
> > >     implementor="demo.spring.HelloWorldImpl" 
> > >     address="/HelloWorld" />        
> > > </beans>
> > > 
> > > I would like to provide my own beans and inject them in different 
> > > endpoints or for example to configure the endpoints to be transactional 
> > > using spring's transaction framework.
> > > 
> > > Is there any documentation showing how to use spring with cxf? The only 
> > > document I found is 
> > > http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html, but 
> > > this is a very pure document :(
> > > Regards Piotr
> > > 
> > > _________________________________________________________________
> > > Discover the new Windows Vista
> > > http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
> > 
> 
> _________________________________________________________________
> Explore the seven wonders of the world
> http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Reply via email to