On Thu, Jul 9, 2009 at 01:54, Tiziano
Perrucci<tiziano....@gmail.com> wrote:
>
> any help is appreciated
> Tiziano
>
> On Jun 22, 3:17 pm, Tiziano Perrucci <tiziano.perru...@gmail.com>
> wrote:
>> Greg,
>> the MessageListener incapsulated in the BayeuxService doesn't receive the
>> meta notifications
>>
>> public class Test extends BayeuxService {
>> private Logger log;
>>
>> public Test(Logger log, Bayeux bayeux) {
>> super(bayeux, "Test");
>> this.log = log;
>>
>> subscribe(Bayeux.META_HANDSHAKE, "testHandshake");
>> subscribe(Bayeux.META_SUBSCRIBE, "testSubscribe");
>> }
>>
>> public void testHandshake(Client client, Object data) {
>> log.info("handshake client: " + client + ", data: " + data);
>> }
>>
>> public void testSubscribe(Client client, Object data) {
>> log.info("subscribe client: " + client + ", data: " + data);
>> }
>>
>> }
I just tried what above, and works like a charm for me: all meta
channels are correctly notified upon the correspondent message.
FYI, there is now a test in the test suite that proves that.
Simon
--
http://bordet.blogspot.com
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz