You do not have to specifially set the WorkManager,
unless you need to.  Just remove the property and
the component will retrieve the one from the ServiceMix
container.

On 10/5/06, robottaway <[EMAIL PROTECTED]> wrote:

When trying to get the ftp poller component working I receive this exception:

Cannot resolve reference to bean 'workManager' while setting bean property
'workManager'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'workManager' is defined

I have configured the component as so:

                        <sm:activationSpec componentName="ftpPoller"
                                service="mf:ftpPoller" 
destinationService="mf:messageTrace">
                                <sm:component>
                                        <bean
                                                
class="org.apache.servicemix.components.net.FTPPoller">
                                                <property name="clientPool" 
ref="ftpClientPool" />
                                                <property name="workManager" 
ref="workManager" />
                                                <property name="path" value="foo" 
/>
                                                <property name="period" 
value="1000" />
                                        </bean>
                                </sm:component>
                        </sm:activationSpec>

I figured the work manager is set up at a higher level, since I see a
reference in the servicemix.xml file which is used to configure my jbi
container. Could someone please explain the 'workManager' to me, and how I
can get the ftp poller working? Thanks!
--
View this message in context: 
http://www.nabble.com/Work-manager-problem-tf2388728.html#a6659551
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to