0 Replies Latest reply on Jul 27, 2010 7:45 PM by Ritesh Shetty

    Spring SEAM Integration problem with factory

    Ritesh Shetty Newbie
      I am trying to integrate seam and spring. But the problem is seam doesn't work fine with Spring factory. It needs the class name to be defined specifically. Usually in spring we specify the interface while defining the factory . This is a problem especially when we have the class loaded using dynamic proxy. Example when we use a webservice client like that of CXF the implementation is a dynamic proxy.

        <!-- bean id="messagingDelegateproxyFactory" name ="messagingDelegateproxyFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
          <property name="serviceClass" value="com.mycomp.MessagingDelegate"/>
          <property name="address" value="${messagingservice.url}"/>
          <seam:component intercept="false"  auto-create="false"/>
        <bean id="messagingDelegate"  class="com.mycomp.MessagingDelegate" name="messagingDelegate" factory-bean="messagingDelegateproxyFactory" factory-method="create">
          <seam:component intercept="false"  auto-create="false"/>

      Error says it needs a class and not an interface in the "class" attribute