Hi,
is there some example of how to instanciate a component using ServiceMixClient ?
I tried :
<component id="notificationManager"
class="weather.jbi.NotificationManager"
service="tns:notificationManager">
<property name="registrationDatabase">
<ref bean="registrationDatabase"/>
</property>
<property name="client" ref="notificationClient"/>
</component>
<component id="notificationClient"
class="org.servicemix.client.DefaultServiceMixClient"
destinationService="pxe:notificationManager"
destinationEndpoint="notificationManager"
destinationOperation="Notify"/>
but it complains that :
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '
notificationClient' is defined: org.springframework.beans.factory.support.Defaul
tListableBeanFactory defining beans [placeholderConfig,jndiTemplate,weatherTopic
,weatherRequestTopic,jmsTemplate,jmsConnectionFactory,jencks,transactionManager,
registrationDatabase,jbi]; root of BeanFactory hierarchy
So I guess that I'm not suppose to reference a <component with :
<property name="client" ref="notificationClient"/>
maybe some other syntax ?
Regards,
Sami Dalouche
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.