users@grizzly.java.net

Re: Am I crazy? Yes...

From: Paul.M <paul.mattheis_at_gmail.com>
Date: Thu, 4 Feb 2010 11:53:29 -0800 (PST)

It's all related... I have my cometd/bayeux thing working now, so when one
browser sends all the other browsers get echo'd the sent.

What I want to do now is have something listening (on the server side) to
capture the inbound messages from the browsers. Then I want to massage the
data (on server, java) and send out a different message to the clients based
on the result.

I had initially thought that I should create a separate java client to
listen. But, after reading, I _think_ that I should be able to just add it
to my server as a handler.... But I'm not sure, so I was checking to see if
that was considered viable.


Oleksiy Stashok wrote:
>
> Hi Paul,
>
> is this question related to cometd or it's a separate one? :)
>
> Thanks.
>
> WBR,
> Alexey.
>
> On Feb 4, 2010, at 15:02 , Paul.M wrote:
>
>>
>> Looking at this another way... Just adding a listener to the
>> "server". It
>> looks like you can get a cometContext and add a listener to that.
>> Is that
>> how I could get the messages (into java) so I can do stuff with them?
>>
>>
>>
>> survivant wrote:
>>>
>>> sorry but I can,t help with this one.
>>>
>>>
>>>
>>> 2010/2/3 Paul.M <paul.mattheis_at_gmail.com>
>>>
>>>>
>>>> Thanks :)
>>>>
>>>> Now I realized I have a follow-up question. I have a situation
>>>> where I
>>>> want
>>>> the clients to send a message to the server, have the server get
>>>> it, but
>>>> none of the children. Then I want the server to send back a
>>>> different
>>>> message to all the clients.
>>>>
>>>> client1 -> I moved -> (Server: Update position) -> send new
>>>> position to
>>>> all
>>>> clients.
>>>>
>>>> I've seen examples that somehow use a servlet to act as a
>>>> listener, but I
>>>> would rather just set up a listener. Can I publish messages on a
>>>> channel
>>>> I
>>>> haven't subscribed to? Otherwise, I need a way to capture the
>>>> inbound
>>>> message at the server, eat it, and later publish a new message to
>>>> the
>>>> channel.
>>>>
>>>> I'm looking for an example of a server side java listener for
>>>> channels.
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Am-I-crazy--Yes...-tp27316206p27439215.html
>>>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>
>>>>
>>>
>>>
>>> --
>>> -------------
>>> A+
>>>
>>> Sébastien.
>>>
>>> Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
>>> http://twitter.com/survivant
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Am-I-crazy--Yes...-tp27316206p27452197.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>

-- 
View this message in context: http://old.nabble.com/Am-I-crazy--Yes...-tp27316206p27458725.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.