You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by bhuvi <kb...@gmail.com> on 2006/08/30 09:18:40 UTC

running default servicemix client

hi 
  can anyone tell the exact structure of servicemix.xml for running
DefaultServicemixClient.

actually i wanna know where to place the <bean> tag with
class="org.apache.servicemix.client.DefaultServiceMixClient"
is this one correct..


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
	     xmlns:my="http://servicemix.apache.org/demo/">


<!-- the JBI container -->
<sm:container id="jbi">

<sm:activationSpecs>
   <sm:activationSpec>
	<sm:component>

<bean id="client"
class="org.apache.servicemix.client.DefaultServiceMixClient">
  <constructor-arg ref="jbi" />
</bean>
</sm:component>
 </sm:activationSpec>
</sm:activationSpecs>
</sm:container>
</beans>

the DefaultServiceMixClient(JBIContainer container)  constructor called thru
xml has 
this(container, new ActivationSpec()); method
 what does this  ActivationSpec() correspond to?
can anyone give a solution....
thanks in advance.
-- 
View this message in context: http://www.nabble.com/running-default-servicemix-client-tf2188166.html#a6053662
Sent from the ServiceMix - User forum at Nabble.com.


Re: running default servicemix client

Posted by Guillaume Nodet <gn...@gmail.com>.
 See
http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/client/example.xml?view=markup

On 8/30/06, bhuvi <kb...@gmail.com> wrote:
>
>
> hi
>   can anyone tell the exact structure of servicemix.xml for running
> DefaultServicemixClient.
>
> actually i wanna know where to place the <bean> tag with
> class="org.apache.servicemix.client.DefaultServiceMixClient"
> is this one correct..
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
>              xmlns:my="http://servicemix.apache.org/demo/">
>
>
> <!-- the JBI container -->
> <sm:container id="jbi">
>
> <sm:activationSpecs>
>    <sm:activationSpec>
>         <sm:component>
>
> <bean id="client"
> class="org.apache.servicemix.client.DefaultServiceMixClient">
>   <constructor-arg ref="jbi" />
> </bean>
> </sm:component>
> </sm:activationSpec>
> </sm:activationSpecs>
> </sm:container>
> </beans>
>
> the DefaultServiceMixClient(JBIContainer container)  constructor called
> thru
> xml has
> this(container, new ActivationSpec()); method
> what does this  ActivationSpec() correspond to?
> can anyone give a solution....
> thanks in advance.
> --
> View this message in context:
> http://www.nabble.com/running-default-servicemix-client-tf2188166.html#a6053662
> Sent from the ServiceMix - User forum at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet