Re: Tomcat 7.0.27 websocket cluster

2012-05-16 Thread Ronaldo Rigoni ...
Thanks Peter and Mark!

The current implementation is a tunnel over http or another socket open?
I'm planning to port a webgame to tomcat, comunicationg with websockets.
But, the absence of a session or context turns a little bit hard to work to.

Many thanks.
[]'s,
Ronaldo Rigoni
Arquiteto de Software



On Wed, May 16, 2012 at 3:26 PM, Peter Roßbach  wrote:

> Currently we don't support it, but I read the Websocket spec that a client
> can send Auth and Cookie header!
>
> Peter
>
> Am 16.05.2012 um 20:21 schrieb Mark Thomas:
>
> > On 16/05/2012 18:31, Ronaldo Rigoni ... wrote:
> >> Hello all,
> >> I've a little question about the websocket implementation available in
> >> Apache Tomcat 7.0.27.
> >> There is a way to cluster an websocket application working with a
> session
> >> replication feature?
> >
> > There would be little point since at present there is no way to access
> > the HTTP session from the WebSocket connection.
> >
> > Mark
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Fwd: Tomcat 7.0.27 websocket cluster

2012-05-16 Thread Ronaldo Rigoni ...
Hello,
And, are the websocket clustering planned for future releases?


Regards

[]'s,
Ronaldo Rigoni
Arquiteto de Software



-- Forwarded message --
From: Mark Thomas 
Date: Wed, May 16, 2012 at 3:44 PM
Subject: Re: Tomcat 7.0.27 websocket cluster
To: Tomcat Users List 


On 16/05/2012 19:34, Ronaldo Rigoni ... wrote:
> Thanks Peter and Mark!
>
> The current implementation is a tunnel over http or another socket open?
> I'm planning to port a webgame to tomcat, comunicationg with websockets.
> But, the absence of a session or context turns a little bit hard to work
to.

It is a protocol switch - as per RFC6455. It starts off as an HTTP
connection and then switches to WebSocket.

Since it is a permanent connection, with objects representing the
connection at both ends, the initial expectation is that state can be
maintained in that object (you have to implement it, extending a base
class Tomcat provides).

If you need more, let us know with a use case. I am on the J2EE
WebSocket EG and we are looking at this topic at the moment.

Mark

>
> Many thanks.
> []'s,
> Ronaldo Rigoni
> Arquiteto de Software
>
>
>
> On Wed, May 16, 2012 at 3:26 PM, Peter Roßbach  wrote:
>
>> Currently we don't support it, but I read the Websocket spec that a
client
>> can send Auth and Cookie header!
>>
>> Peter
>>
>> Am 16.05.2012 um 20:21 schrieb Mark Thomas:
>>
>>> On 16/05/2012 18:31, Ronaldo Rigoni ... wrote:
>>>> Hello all,
>>>> I've a little question about the websocket implementation available in
>>>> Apache Tomcat 7.0.27.
>>>> There is a way to cluster an websocket application working with a
>> session
>>>> replication feature?
>>>
>>> There would be little point since at present there is no way to access
>>> the HTTP session from the WebSocket connection.
>>>
>>> Mark
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org