Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] WebSockets: Specific Client Message


Simon,

Thanks a lot.

Sunny


On Thu, Jan 12, 2012 at 7:14 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Thu, Jan 12, 2012 at 02:54, Seonhong Ahn <seonhong.ahn@xxxxxxxxx> wrote:
> Hi..
>
> According to jetty Web application architecture,
>
> ServletHandler is located in the lastest..
>
> So, I tried to adapt DefaultHandler to WebSocketHandler... but it didn't
> work..
>
> I don't know why...

You cannot use a ServletContextListener, which is an entity that is
attached to a Server, to start and stop the server itself.

> Is really there no way except Servlet for WebSocket..?

That's the simplest way. You build a standard web application, you
create your WebSocketServlet subclass, map it in web.xml, and you're
done.

I'd recommend to start with that.

Simon
--
http://cometd.org
http://intalio.com
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
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



--

----------------------------------------------------------------------------------
Seonhong Ahn 
Director of Research and Development

Collabra Co.
960-6 Deachi-dong, Gangnam-gu, Seoul, Korea 135-280 
Tel. 82-70-8670-6929         Fax. 82-2-6280-4807
Mobile 82-10-8292-3923
----------------------------------------------------------------------------------


Back to the top