Hi everybody,

I'm learning iPojo with the various tutorials I found on the official
website and I came across the following problem :

To test asynchronous communication, I defined 3 iPojos :
 - a dictionary service implementation (which I slowed down with a
Thread.sleep)
 - a spell checker service implementation which checks spelling in a
separate Thread and publish the result on a specific topic
 - a spell checker gui which sends the String and updates when receiving the
result

When I use the following instanciation, everything works perfecly :

<instance
component="org.kookoolen.learning.spell.dictionary.LowDictionary"/>
<instance
component="org.kookoolen.learning.spell.checker.AsynchronousSpellCheck" />
<instance
component="org.kookoolen.learning.spell.gui.AsynchronousSpellCheckerGui" />

On the contrary, when I try the same in a composite, the Spell checker is
invalid :

<composite name="async-spell-checker-application">
    <instance
component="org.kookoolen.learning.spell.dictionary.LowDictionary"/>
    <instance
component="org.kookoolen.learning.spell.checker.AsynchronousSpellCheck" />
    <instance
component="org.kookoolen.learning.spell.gui.AsynchronousSpellCheckerGui" />
</composite>

I get the following in the spell checker service description (using the web
console) inside the composite:

[...]
handler name="org.apache.felix.ipojo.handlers.event:publisher"
state="invalid"
[...]

Thanks for your help !
Sylvain

Reply via email to