Listener on the JBI container are not components.
You just need register the listener on the JBI container using the
addListener method.
You can do that programmatically, or in the configuration file, using the
following syntax:
<sm:container ...>
<sm:listeners>
<bean class="your.bean.class" ... />
<sm:listeners>
</sm:container>
If you need to do that from a component, you can retrieve the JBIContainer
using
((ComponentContextImpl) getContext()).getContainer()
.
On 8/3/06, bruce76 <[EMAIL PROTECTED]> wrote:
Guillaume,
So here's what we did (using ServiceMix 3):
1. We created two LW SEs (ping and pong)
2. Ping is the sender, but also extends AbstractAuditor (it also
implements
alot of the code that JdbcAuditor, but doesn't try to persist the data --
it
simply performs a System.out when exchangeSent() is called )
3. Ping sends several messages to pong, but Ping's exchangeSent() method
is
never called
Is this due to the fact that we're using LW components and not pure JBI
components?
Thanks,
Bruce
--
View this message in context:
http://www.nabble.com/SubscriptionSpec-Expectations-tf2046265.html#a5640041
Sent from the ServiceMix - User forum at Nabble.com.
--
Cheers,
Guillaume Nodet