I have followed the instructions on this
http://xfire.codehaus.org/Advanced+Configuration page to leverage
annotations and this works fine. Since the exposed method I have has an
XMLBean for the argument, 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. What I need to be able to do is
chain them together; 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.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.commonsAnnotations"
class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" />
<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.qualcomm.pds.softwarecompliance.sca.jws.IScaWebService
</value>
</property>
<property name="serviceFactory">
<ref bean="xfire.annotationServiceFactory" />
</property>
</bean>
<bean name="/HelloWorld"
class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceBean">
<ref bean="HelloWorldImpl" />
</property>
<property name="serviceClass">
<value>
com.qualcomm.pds.softwarecompliance.sca.jws.IHelloWorld
</value>
</property>
<property name="serviceFactory">
<ref bean="xfire.annotationServiceFactory" />
</property>
</bean>
<bean id="HelloWorldImpl"
class="com.qualcomm.pds.softwarecompliance.sca.jws.HelloWorld"
/>
<bean id="ScaWebServiceImpl"
class="com.qualcomm.pds.softwarecompliance.sca.jws.ScaWebService" />
</beans>
Thanks,
Lou
--
View this message in context:
http://www.nabble.com/XFire-%2B-Spring-2-%2B-JSR-181-%2B-XMLBeans-tf3812037.html#a10790259
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email