Just try the same thing as for other components:
<sm:activationSpec>
<sm:component>
<bean class="org.apache.servicemix.wsn.component.WSNComponent" />
</sm:component>
</sm:activationSpec>
Note that you will have to use the client api in o.a.s.wsn.client to be able
to register publisher or create subscriptions.
Cheers,
Guillaume Nodet
On 3/1/06, Stefan Klinger <[EMAIL PROTECTED]> wrote:
>
> Thanks Guillaume,
>
> I don't want to use the broker outside of jbi, I just would like to
> install it as a jbi component using xbean within the servicemix.xml.
> Should I configure it as a JSR181 component or are there other ways to
> do it? Maybe a xml snippet would help...
>
> Thanks again,
> Stefan
>
> Guillaume Nodet wrote:
>
> >Hi Stefan !
> >
> >On 3/1/06, Stefan Klinger <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hello,
> >>
> >>I just wondered why there is no Spring WSNComponent in wsn2005, is there
> >>a particular reason for it as there seems to be a Spring component for
> >>most other components?
> >>
> >>
> >
> >
> >I think the main reason is that it has not been done yet ;)
> >Depending on how you use the WSN component, you should be able to
> configure
> >it
> >in the main servicemix.xml without any problems. You will be limited to
> use
> >dynamic publisher / subscriptions, as opposed to publisher /
> subscriptions
> >that can be deployed
> >as service units.
> >
> >Is it further possible to instantiate the JbiNotificationBroker from
> >
> >
> >>Spring/XBean similar to an ActiveMQ Broker? Or is it supposed to be
> >>installed as a JSR181 component?
> >>
> >>
> >
> >
> >I 'm not sure to clearly understand what you want. Using it ouside the
> JBI
> >environment
> >may be possible, but it requires some work. Else, it really relies on
> JBI,
> >so you have
> >to install it as a JBI component, or configure it in the main
> >servicemix.xmlfile with an
> >activationSpec.
> >
> >Hope that helps,
> >Guillaume Nodet
> >
> >Thanks,
> >
> >
> >>Stefan
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
>
>