I have followed the instructions on the Xfire site to leverage annotations
and that works fine.  However, I have a method that has an XMLBean for the
argument and I'm not sure how I can wire this together with annotations
because both require service factories and it seems you can only use one at
a time in XFireExporter bean (see below, I currently have the Annotations
bean wired).  What I need to be able to do is chain them together somehow. 
Are they any recommendations to use JSR181 Annotations and XMLBeans at the
same time in a Spring 2.0 appContext?

My application context is as follows:

        <import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
        <bean id="xfire.commonsAnnotations"
               
class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" />
        <bean id="xfire.annotationServiceFactory"
               
class="org.codehaus.xfire.annotations.AnnotationServiceFactory">
                <constructor-arg index="0">
                        <ref bean="xfire.commonsAnnotations" />
                </constructor-arg>
                <constructor-arg index="1">
                        <ref bean="xfire.transportManager" />
                </constructor-arg>
                <constructor-arg index="2">
                        <ref bean="xfire.aegisBindingProvider" />
                </constructor-arg>
        </bean>  
        <bean id="xfire.xmlbeansServiceFactory"
                class="org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory">
                <constructor-arg index="0">
                        <ref bean="xfire.transportManager" />
                </constructor-arg>
        </bean>
        <bean name="/ScaWebService"
                class="org.codehaus.xfire.spring.remoting.XFireExporter">
                <property name="serviceBean">
                        <ref bean="ScaWebServiceImpl" />
                </property>
                <property name="serviceClass">
                        <value>
                                com.xxx.xxx.xxx.sca.jws.IScaWebService
                        </value>
                </property>
                <property name="serviceFactory">
                        <ref bean="xfire.annotationServiceFactory" />
                </property>
        </bean>
        <bean id="ScaWebServiceImpl"
                class="com.xxx.xxx.xxx.sca.jws.ScaWebService" />
</beans>

Thanks,
Lou 
-- 
View this message in context: 
http://www.nabble.com/Using-XMLBeans-as-a-WS-arguement-with-JSR181-Annotations---Spring-tf3871244.html#a10967854
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to