Hi, sorry, I looked at the wrong documentation page :
http://servicemix.org/Client+API gives this : <bean id="clientWithRouting" class="org.servicemix.client.DefaultServiceMixClient"> <constructor-arg ref="jbi" /> <constructor-arg> <bean class="org.servicemix.jbi.container.ActivationSpec"> <property name="destinationService"> <qname>foo:receiver</qname> </property> </bean> </constructor-arg> </bean> so it should work. Sami Dalouche Quoting Sami Dalouche <[EMAIL PROTECTED]>: > > > 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. > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
